From 8ff1ea3fc1169ab318f88ed7f3e04d5793171bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD=20=D0=94=D0=BE=D0=BD=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Wed, 28 Oct 2015 23:10:44 +0300 Subject: [PATCH] Use the same error callback in the simple sample as in wave and heightmap Besides improving consistency, this also ensures that error messages end with newlines. --- examples/simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/simple.c b/examples/simple.c index 37cf10502..a06e7cc60 100644 --- a/examples/simple.c +++ b/examples/simple.c @@ -32,7 +32,7 @@ static void error_callback(int error, const char* description) { - fputs(description, stderr); + fprintf(stderr, "Error: %s\n", description); } static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods)