chiark / gitweb /
New upstream version 1.19
[chroma-debian.git] / sdldisplay.c
index f95cc54d4819d9c77cf6cede84594dedb20ba322..33312b8bbcb3750a0c417ea24cc96786b2eb8394 100644 (file)
@@ -3557,9 +3557,9 @@ void display_options_load()
     options_debug = 0;
 
     getfilename("colours", filename, 0, LOCATION_SYSTEM);
-    sprintf(options_colours, "%s/%s", filename, COLOURS_DEFAULT);
+    snprintf(options_colours, sizeof(options_colours), "%s/%s", filename, COLOURS_DEFAULT);
     getfilename("graphics", filename, 0, LOCATION_SYSTEM);
-    sprintf(options_graphics, "%s/%s", filename, GRAPHICS_DEFAULT);
+    snprintf(options_graphics, sizeof(options_graphics), "%s/%s", filename, GRAPHICS_DEFAULT);
 
     getfilename("sdl.chroma", filename, 0, LOCATION_LOCAL);