aboutsummaryrefslogtreecommitdiffstats
path: root/libversit
diff options
context:
space:
mode:
Diffstat (limited to 'libversit')
-rw-r--r--libversit/vcc.c4
-rw-r--r--libversit/vcc.y4
2 files changed, 4 insertions, 4 deletions
diff --git a/libversit/vcc.c b/libversit/vcc.c
index 02ab47cb8e..c26f28a0c5 100644
--- a/libversit/vcc.c
+++ b/libversit/vcc.c
@@ -2030,8 +2030,8 @@ DLLEXPORT(VObject*) Parse_MIME_FromFileName(char *fname)
return o;
}
else {
- char msg[80];
- sprintf(msg, "can't open file '%s' for reading\n", fname);
+ char msg[256];
+ snprintf(msg, sizeof(msg), "can't open file '%s' for reading\n", fname);
mime_error_(msg);
return 0;
}
diff --git a/libversit/vcc.y b/libversit/vcc.y
index b8b9933f2c..5c9a751913 100644
--- a/libversit/vcc.y
+++ b/libversit/vcc.y
@@ -1176,8 +1176,8 @@ DLLEXPORT(VObject*) Parse_MIME_FromFileName(char *fname)
return o;
}
else {
- char msg[80];
- sprintf(msg, "can't open file '%s' for reading\n", fname);
+ char msg[256];
+ snprintf(msg, sizeof(msg), "can't open file '%s' for reading\n", fname);
mime_error_(msg);
return 0;
}