summaryrefslogtreecommitdiff
path: root/src/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui.c b/src/gui.c
index 8cd43ac8f..090160ad0 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -4359,7 +4359,7 @@ gui_find_bitmap(name, buffer, ext)
{
if (STRLEN(name) > MAXPATHL - 14)
return FAIL;
- sprintf((char *)buffer, "bitmaps/%s.%s", name, ext);
+ vim_snprintf((char *)buffer, MAXPATHL, "bitmaps/%s.%s", name, ext);
if (do_in_runtimepath(buffer, FALSE, gfp_setname, buffer) == FAIL
|| *buffer == NUL)
return FAIL;