summaryrefslogtreecommitdiff
path: root/sdldisplay.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2021-10-26 17:37:35 +0100
committerSimon Tatham <anakin@pobox.com>2021-10-26 17:37:35 +0100
commit6f60651f1066c14e7d4f8e64d98d7b35bed963b7 (patch)
tree14f28ff640c941d32d702a6d6870bc6f41bd43a7 /sdldisplay.c
parent28e4091c1dd856b5c19df39846dbd60e1690197f (diff)
New upstream version 1.19
Diffstat (limited to 'sdldisplay.c')
-rw-r--r--sdldisplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdldisplay.c b/sdldisplay.c
index f95cc54..33312b8 100644
--- a/sdldisplay.c
+++ b/sdldisplay.c
@@ -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);