diff 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
line wrap: on
line diff
--- a/src/audio/mme/SDL_mmeaudio.c	Tue Feb 07 07:03:29 2006 +0000
+++ b/src/audio/mme/SDL_mmeaudio.c	Tue Feb 07 09:29:18 2006 +0000
@@ -91,7 +91,7 @@
     int len;
     char errbuf[MAXERRORLENGTH];
 
-    sprintf(errbuf, "%s: ", function);
+    SDL_snprintf(errbuf, SDL_arraysize(errbuf), "%s: ", function);
     len = SDL_strlen(errbuf);
     waveOutGetErrorText(code, errbuf+len, MAXERRORLENGTH-len);
     SDL_SetError("%s",errbuf);