commit | ba9b13f6cec0c9083a67a0137ce3de1e46831531 | [log] [tgz] |
---|---|---|
author | Geoff Levand <geoff@infradead.org> | Thu Sep 29 20:06:26 2022 -0700 |
committer | Geoff Levand <geoff@infradead.org> | Thu Sep 29 20:06:26 2022 -0700 |
tree | 532def25fbfdeb273ab40d80bbffc24b045fe0b3 | |
parent | 13c45c2be3b4f9e745a619f573f5c606ccd901fa [diff] |
ps3-flash-util: Fix null access Signed-off-by: Geoff Levand <geoff@infradead.org>
diff --git a/ps3-flash-util.c b/ps3-flash-util.c index 8ae2af7..137366c 100644 --- a/ps3-flash-util.c +++ b/ps3-flash-util.c
@@ -306,8 +306,8 @@ for (i = 0; i < required; i++) { if (!argv[i + 1]) { if (required > i) { - fprintf(stderr, "missing option: -%c at '%s'\n", - argv[0][1], argv[i + 1]); + fprintf(stderr, "missing option: -%c\n", + argv[0][1]); return -1; } break;