Commit 686dca0f authored by Heiko Schocher's avatar Heiko Schocher Committed by Anatolij Gustschin

tools, fit_info: increase buffer for command name

currently the buffer for command name is 50 bytes only. If using
fit_info with long absolute paths, this is not enough, so raise
it to 256 (as it is in fit_check_sign)
Signed-off-by: default avatarHeiko Schocher <>
Cc: Simon Glass <>
Acked-by: default avatarSimon Glass <>
parent 04a710a5
......@@ -48,10 +48,11 @@ int main(int argc, char **argv)
char *fdtfile = NULL;
char *nodename = NULL;
char *propertyname = NULL;
char cmdname[50];
char cmdname[256];
int c;
strcpy(cmdname, *argv);
strncpy(cmdname, *argv, sizeof(cmdname) - 1);
cmdname[sizeof(cmdname) - 1] = '\0';
while ((c = getopt(argc, argv, "f:n:p:")) != -1)
switch (c) {
case 'f':
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment