Fixed segfault with 'cut -f 1 -d:' and added 'cut -s' suport.
[oweals/busybox.git] / sed.c
diff --git a/sed.c b/sed.c
index 9fed6704e9f194c0f91d5383d9e1a5cf7bf00e1b..d4b721e4944fc57226053f886730c60cdc332101 100644 (file)
--- a/sed.c
+++ b/sed.c
@@ -57,9 +57,9 @@ static const char sed_usage[] =
        "-e\tadd the script to the commands to be executed\n"
        "-n\tsuppress automatic printing of pattern space\n\n"
 #if defined BB_REGEXP
-       "This version of sed matches full regular expresions.\n";
+       "This version of sed matches full regular expressions.\n";
 #else
-       "This version of sed matches strings (not full regular expresions).\n"
+       "This version of sed matches strings (not full regular expressions).\n"
 #endif
 #endif
        ;
@@ -352,7 +352,7 @@ extern int sed_main(int argc, char **argv)
                        fclose(fp);
                }
        }
-       exit(TRUE);
+       return(TRUE);
 }