diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2004-11-12 21:13:59 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2004-11-12 21:13:59 +0000 |
commit | 85026c42ec8ff853e10f03d28c95c12433fa776e (patch) | |
tree | 11037211b02a44c6df3ecd8b25bca6f53603efe2 | |
parent | b4e7d65a954680b3092db0880bcf90aa4a93dec6 (diff) | |
download | fetchmail-85026c42ec8ff853e10f03d28c95c12433fa776e.tar.gz fetchmail-85026c42ec8ff853e10f03d28c95c12433fa776e.tar.bz2 fetchmail-85026c42ec8ff853e10f03d28c95c12433fa776e.zip |
sprintf -> snprintf
svn path=/trunk/; revision=4003
-rw-r--r-- | unmime.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -668,10 +668,11 @@ int main(int argc, char *argv[]) FILE *fd_orig, *fd_conv; char fnam[100]; + /* we don't need snprintf here, but for consistency, we'll use it */ pid = getpid(); - sprintf(fnam, "/tmp/i_unmime.%lx", (long)pid); + snprintf(fnam, sizeof(fnam), "/tmp/i_unmime.%lx", (long)pid); fd_orig = fopen(fnam, "w"); - sprintf(fnam, "/tmp/o_unmime.%lx", (long)pid); + snprintf(fnam, sizeof(fnam), "/tmp/o_unmime.%lx", (long)pid); fd_conv = fopen(fnam, "w"); #endif |