]> diplodocus.org Git - nmh/blobdiff - sbr/refile.c
Fix invalid pointer arithmetic.
[nmh] / sbr / refile.c
index b3402cfe61b613b1453654ea978bdc2c1c5a6d45..3c4d4e2550b2d355cc15c94ae2d533d12fe4ded0 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * refile.c -- call the "fileproc" to refile the
+/* refile.c -- call the "fileproc" to refile the
  *          -- msg or draft into another folder
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
@@ -45,10 +43,10 @@ refile (char **arg, char *file)
            execvp (program, vec);
            fprintf (stderr, "unable to exec ");
            perror (fileproc);
-           _exit (-1);
+           _exit(1);
 
        default: 
            arglist_free(program, vec);
-           return (pidwait (pid, -1));
+           return pidwait(pid, -1);
     }
 }