diff options
author | Michael Fulbright <drmike@src.gnome.org> | 1998-11-08 05:29:05 +0800 |
---|---|---|
committer | Michael Fulbright <drmike@src.gnome.org> | 1998-11-08 05:29:05 +0800 |
commit | c5cb76042a816d51c017d6b709d1c2485a47ff6b (patch) | |
tree | 425d057659c607cbe76005fec0d86a650d8bb26e /libversit/vcc.c | |
parent | f57edfbc19d7e33d5f068bc1054c1df4776fb14c (diff) | |
download | gsoc2013-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/vcc.c')
-rw-r--r-- | libversit/vcc.c | 4 |
1 files changed, 2 insertions, 2 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; } |