aboutsummaryrefslogtreecommitdiffstats
path: root/libversit
diff options
context:
space:
mode:
authorMichael Fulbright <drmike@src.gnome.org>1998-11-08 05:29:05 +0800
committerMichael Fulbright <drmike@src.gnome.org>1998-11-08 05:29:05 +0800
commitc5cb76042a816d51c017d6b709d1c2485a47ff6b (patch)
tree425d057659c607cbe76005fec0d86a650d8bb26e /libversit
parentf57edfbc19d7e33d5f068bc1054c1df4776fb14c (diff)
downloadgsoc2013-evolution-c5cb76042a816d51c017d6b709d1c2485a47ff6b.tar
gsoc2013-evolution-c5cb76042a816d51c017d6b709d1c2485a47ff6b.tar.gz
gsoc2013-evolution-c5cb76042a816d51c017d6b709d1c2485a47ff6b.tar.bz2
gsoc2013-evolution-c5cb76042a816d51c017d6b709d1c2485a47ff6b.tar.lz
gsoc2013-evolution-c5cb76042a816d51c017d6b709d1c2485a47ff6b.tar.xz
gsoc2013-evolution-c5cb76042a816d51c017d6b709d1c2485a47ff6b.tar.zst
gsoc2013-evolution-c5cb76042a816d51c017d6b709d1c2485a47ff6b.zip
Changed a sprintf to a snprintf in vcc.y
Should vcc.c be under CVS control? I thought it was a derived file. This fixes gnomecard segfaulting when it tried to load a non-existant file on startup. Dr Mike <msf@redhat.com> svn path=/trunk/; revision=466
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;
}