aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2013-12-02 05:17:20 -0800
committerRay <raysan5@gmail.com>2013-12-02 05:17:20 -0800
commite1dd9f9cddf52ebc408d48481e4aa97e549dcdc5 (patch)
treef2c6c6ad6219d7711ff13fe5a0e7bc042478a1fb /src
parent26af48464b4e897226a3dfc2000271ad5e2214f4 (diff)
downloadraylib-e1dd9f9cddf52ebc408d48481e4aa97e549dcdc5.tar.gz
raylib-e1dd9f9cddf52ebc408d48481e4aa97e549dcdc5.zip
Corrected WARNING on ErrorCallback()
The default compiler flags on Ubuntu includes -Wformat -Wformat-security which is what gives this error. That flag is used as a precaution against introducing security related bugs.
Diffstat (limited to 'src')
-rw-r--r--src/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index 76df254f..4041aa86 100644
--- a/src/core.c
+++ b/src/core.c
@@ -529,8 +529,8 @@ bool IsGamepadButtonUp(int gamepad, int button)
// GLFW3 Error Callback, runs on GLFW3 error
static void ErrorCallback(int error, const char *description)
{
- printf(description);
- //fprintf(stderr, description);
+ //printf(description);
+ fprintf(stderr, "%s", description);
}
// GLFW3 Keyboard Callback, runs on key pressed
@@ -688,4 +688,4 @@ static void TakeScreenshot()
free(imgDataPixel);
shotNum++;
-} \ No newline at end of file
+}