Mercurial > sdl-ios-xcode
diff src/audio/esd/SDL_esdaudio.c @ 1338:604d73db6802
Removed uses of stdlib.h and string.h
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 09:29:18 +0000 |
parents | 3692456e7b0f |
children | c71e05b4dc2e |
line wrap: on
line diff
--- a/src/audio/esd/SDL_esdaudio.c Tue Feb 07 07:03:29 2006 +0000 +++ b/src/audio/esd/SDL_esdaudio.c Tue Feb 07 09:29:18 2006 +0000 @@ -24,15 +24,12 @@ #ifdef ESD_SUPPORT -#include <stdlib.h> -#include <stdio.h> -#include <string.h> #include <errno.h> -#include <signal.h> -#include <unistd.h> #include <esd.h> +#include "SDL_stdlib.h" +#include "SDL_string.h" #include "SDL_audio.h" #include "SDL_error.h" #include "SDL_audiomem.h" @@ -257,7 +254,7 @@ FILE *fp; static char temp[BUFSIZ]; - sprintf(temp, "/proc/%d/cmdline", getpid()); + SDL_snprintf(temp, SDL_arraysize(temp), "/proc/%d/cmdline", getpid()); fp = fopen(temp, "r"); if ( fp != NULL ) { if ( fgets(temp, sizeof(temp)-1, fp) ) {