about summary refs log tree commit diff
path: root/converter/other/pnmtorle.c
diff options
context:
space:
mode:
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 8c6dc589..b7834e89 100644
--- a/converter/other/pnmtorle.c
+++ b/converter/other/pnmtorle.c
@@ -208,7 +208,6 @@ main(argc, argv)
     char **argv;
 {
     char     *pnmname = NULL, *outname = NULL;
-    static char  filename[BUFSIZ];
     int      oflag, c;
 
     pnm_init(&argc, argv);
@@ -235,12 +234,10 @@ main(argc, argv)
  * Open the file.
  */
     if (pnmname == NULL) {
-        strcpy(filename, "stdin");
         fp = stdin;
     }
     else {
-        strcpy(filename, pnmname);
-        fp = pm_openr(filename);
+        fp = pm_openr(pnmname);
     }
 
     hdr.rle_file = rle_open_f( hdr.cmd, outname, "wb" );