about summary refs log tree commit diff
path: root/converter/other/pnmtorle.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-05-24 02:30:42 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-05-24 02:30:42 +0000
commitd16a2d357efbf60c3d325367a2d8b03232712e93 (patch)
treeb5c242c72aca2e6d2e1b09addb8a289cee5c2526 /converter/other/pnmtorle.c
parentcfbfa5c07438316b3df227dc01ab06e2e593694e (diff)
downloadnetpbm-mirror-d16a2d357efbf60c3d325367a2d8b03232712e93.tar.gz
netpbm-mirror-d16a2d357efbf60c3d325367a2d8b03232712e93.tar.xz
netpbm-mirror-d16a2d357efbf60c3d325367a2d8b03232712e93.zip
Fix buffer overrun in unused variable
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2516 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/pnmtorle.c')
-rw-r--r--converter/other/pnmtorle.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/converter/other/pnmtorle.c b/converter/other/pnmtorle.c
index 180b144f..8908c356 100644
--- a/converter/other/pnmtorle.c
+++ b/converter/other/pnmtorle.c
@@ -212,7 +212,6 @@ main(int argc, char **  argv) {
 
     const char * pnmname;
     const char * outname;
-    static char filename[BUFSIZ];
     int oflag;
 
     pnm_init(&argc, argv);
@@ -239,11 +238,9 @@ main(int argc, char **  argv) {
 
     /* Open the file. */
     if (pnmname == NULL) {
-        strcpy(filename, "stdin");
         fp = pm_openr("-");
     } else {
-        strcpy(filename, pnmname);
-        fp = pm_openr(filename);
+        fp = pm_openr(pnmname);
     }
 
     hdr.rle_file = rle_open_f( hdr.cmd, outname, "wb" );