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:
Jan Höppner
2020-11-02 09:09:51 +01:00
parent 702dc96264
commit 148d3f9b64

View File

@@ -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)