mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
dasdfmt: Fix segfault when an incorrect option is specified
When specifying an incorrect program option, dasdfmt segfaults as the
format string for the corresponding error message has no parameter.
Add the missing parameter to fix this.
Fixes: 732b3dddab ("dasdfmt: Replace ERRMSG_EXIT macro with an error handling function")
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
@@ -1637,7 +1637,7 @@ int main(int argc, char *argv[])
|
||||
/* End of options string - start of devices list */
|
||||
break;
|
||||
default:
|
||||
error("Try '%s --help' for more information.");
|
||||
error("Try '%s --help' for more information.", prog_name);
|
||||
}
|
||||
|
||||
if (rc == -1)
|
||||
|
||||
Reference in New Issue
Block a user