Mercurial > sdl-ios-xcode
diff src/cdrom/win32/SDL_syscdrom.c @ 1330:450721ad5436
It's now possible to build SDL without any C runtime at all on Windows,
using Visual C++ 2005
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 06 Feb 2006 08:28:51 +0000 |
parents | c9b51268668f |
children | 3692456e7b0f |
line wrap: on
line diff
--- a/src/cdrom/win32/SDL_syscdrom.c Sat Feb 04 22:01:44 2006 +0000 +++ b/src/cdrom/win32/SDL_syscdrom.c Mon Feb 06 08:28:51 2006 +0000 @@ -22,13 +22,13 @@ /* Functions for system-level CD-ROM audio control */ -#include <stdlib.h> -#include <stdio.h> -#include <windows.h> +#include "SDL_windows.h" #include <mmsystem.h> #include "SDL_error.h" #include "SDL_cdrom.h" +#include "SDL_stdlib.h" +#include "SDL_string.h" #include "SDL_syscdrom.h" /* This really broken?? */ @@ -99,7 +99,7 @@ /* Scan the system for CD-ROM drives */ for ( i='A'; i<='Z'; ++i ) { - sprintf(drive, "%c:\\", i); + snprintf(drive, SDL_arraysize(drive), "%c:\\", i); if ( GetDriveType(drive) == DRIVE_CDROM ) { AddDrive(drive); }