From ec7f4d323246128f527b4e7372c3ace66098f0cf 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 fprintf in error callback of simple example Besides improving consistency, this also ensures that error messages end with newlines. Closes #628. --- examples/simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/simple.c b/examples/simple.c index 37cf1050..a06e7cc6 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)