mirror of
https://github.com/open-simh/simtools.git
synced 2026-01-31 13:53:14 +00:00
tar2mt: Correct argv test
This commit is contained in:
committed by
Mark Pizzolato
parent
4160763911
commit
5af23d143e
@@ -44,7 +44,7 @@ if (argc < 2) {
|
||||
fprintf (stderr, "blocksize defaults to 8192\n");
|
||||
exit (0);
|
||||
}
|
||||
if ((argc >= 3) && ((strcmp("-b", argv[1])) || (strcmp("--blocksize", argv[1])))) {
|
||||
if ((argc >= 3) && ((strcmp("-b", argv[1]) == 0) || (strcmp("--blocksize", argv[1]) == 0))) {
|
||||
if (atoi (argv[2]) <= 0) {
|
||||
fprintf (stderr, "Invalid blocksize: %s\n", argv[2]);
|
||||
exit (0);
|
||||
|
||||
Reference in New Issue
Block a user