Mercurial > sdl-ios-xcode
comparison src/audio/mme/SDL_mmeaudio.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 | d73be99e9420 |
comparison
equal
deleted
inserted
replaced
1337:c687f06c7473 | 1338:604d73db6802 |
---|---|
89 static void SetMMerror(char *function, MMRESULT code) | 89 static void SetMMerror(char *function, MMRESULT code) |
90 { | 90 { |
91 int len; | 91 int len; |
92 char errbuf[MAXERRORLENGTH]; | 92 char errbuf[MAXERRORLENGTH]; |
93 | 93 |
94 sprintf(errbuf, "%s: ", function); | 94 SDL_snprintf(errbuf, SDL_arraysize(errbuf), "%s: ", function); |
95 len = SDL_strlen(errbuf); | 95 len = SDL_strlen(errbuf); |
96 waveOutGetErrorText(code, errbuf+len, MAXERRORLENGTH-len); | 96 waveOutGetErrorText(code, errbuf+len, MAXERRORLENGTH-len); |
97 SDL_SetError("%s",errbuf); | 97 SDL_SetError("%s",errbuf); |
98 } | 98 } |
99 | 99 |