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);