diff --git a/tests/accuracy.c b/tests/accuracy.c index 30235a5e..c9a82ec7 100644 --- a/tests/accuracy.c +++ b/tests/accuracy.c @@ -46,9 +46,9 @@ static void set_swap_interval(GLFWwindow window, int interval) swap_interval = interval; glfwSwapInterval(swap_interval); - snprintf(title, sizeof(title), - "Cursor Inaccuracy Detector (interval %i)", - swap_interval); + sprintf(title, + "Cursor Inaccuracy Detector (interval %i)", + swap_interval); glfwSetWindowTitle(window, title); } diff --git a/tests/modes.c b/tests/modes.c index 660f89d5..b5912ed7 100644 --- a/tests/modes.c +++ b/tests/modes.c @@ -53,11 +53,11 @@ static const char* format_mode(GLFWvidmode* mode) { static char buffer[512]; - snprintf(buffer, sizeof(buffer), - "%i x %i x %i (%i %i %i)", - mode->width, mode->height, - mode->redBits + mode->greenBits + mode->blueBits, - mode->redBits, mode->greenBits, mode->blueBits); + sprintf(buffer, + "%i x %i x %i (%i %i %i)", + mode->width, mode->height, + mode->redBits + mode->greenBits + mode->blueBits, + mode->redBits, mode->greenBits, mode->blueBits); buffer[sizeof(buffer) - 1] = '\0'; return buffer; diff --git a/tests/tearing.c b/tests/tearing.c index c2349c88..165ec01c 100644 --- a/tests/tearing.c +++ b/tests/tearing.c @@ -43,9 +43,9 @@ static void set_swap_interval(GLFWwindow window, int interval) swap_interval = interval; glfwSwapInterval(swap_interval); - snprintf(title, sizeof(title), - "Tearing detector (interval %i)", - swap_interval); + sprintf(title, + "Tearing detector (interval %i)", + swap_interval); glfwSetWindowTitle(window, title); }