Simple Directmedia Layer
Go to file
Ryan C. Gordon d9f378530b Make SDL error string formatting deal with nasty corner cases.
We continued looping while maxlen > 0, but maxlen was unsigned, so an overflow
 would make it a large number instead of negative. Fixed.

Some snprintf() implementations might return a negative value if there isn't
 enough space, and we now check for that.

Don't overrun the SDL error message buffer, if snprintf() returned the number
 of chars it wanted to write instead of the number it did.

snprintf is a portability mess, we should just never use the C runtime for it.

Fixes Bugzilla #2049.
2015-03-24 03:12:35 -04:00
acinclude Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
android-project Fixed wrong comment in implementation for Android. 2015-01-31 10:32:45 +01:00
build-scripts Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
cmake Whoops, lost a newline in here. 2015-03-20 23:29:09 -04:00
debian Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
docs WinRT: updated names, and references-to, various ANGLE/WinRT repositories 2015-03-18 12:03:32 -04:00
include Windows: Report window HDC in SDL_SysWMinfo. 2015-03-23 19:47:08 -04:00
premake Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
src Make SDL error string formatting deal with nasty corner cases. 2015-03-24 03:12:35 -04:00
test Updated test program for Emscripten. 2015-03-23 20:21:45 +01:00
VisualC Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
VisualC-WinRT Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
visualtest Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
Xcode Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
Xcode-iOS Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
.hgignore Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
Android.mk Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
autogen.sh Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
BUGS.txt Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
cmake_uninstall.cmake.in Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
CMakeLists.txt Several corrections to the CMake project files (thanks, Ozkan!). 2015-03-20 21:57:15 -04:00
configure configure script: fix recursive mutex test on Linux systems (thanks, Ozkan!). 2015-03-23 20:07:24 -04:00
configure.in configure script: fix recursive mutex test on Linux systems (thanks, Ozkan!). 2015-03-23 20:07:24 -04:00
COPYING.txt Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
CREDITS.txt Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
INSTALL.txt Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
Makefile.in Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
Makefile.minimal Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
Makefile.pandora Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
Makefile.psp Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
Makefile.wiz Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
README-SDL.txt Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
README.txt Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
sdl2-config.in Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
sdl2.m4 Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
sdl2.pc.in Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
SDL2.spec.in Some corrections to the SDL2.spec.in (thanks, Simone!). 2015-02-19 13:42:56 -05:00
TODO.txt Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
VisualC.html Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00
WhatsNew.txt Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation 2015-01-26 22:00:29 +01:00

                         Simple DirectMedia Layer

                                  (SDL)

                                Version 2.0

---
http://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed
to provide low level access to audio, keyboard, mouse, joystick, and graphics
hardware via OpenGL and Direct3D. It is used by video playback software,
emulators, and popular games including Valve's award winning catalog
and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting
with README.md

Enjoy!
	Sam Lantinga				(slouken@libsdl.org)