From 04a710a593138a0a3cfe88cd3a0ba036973a9fda Mon Sep 17 00:00:00 2001 From: Heiko Schocher Date: Mon, 11 Aug 2014 11:02:17 +0200 Subject: tools: fix typo in tools/image-host.c fix a typo in error printf. If FIT_CONFS_PATH is not found print FIT_CONFS_PATH not FIT_IMAGES_PATH. Signed-off-by: Heiko Schocher Cc: Simon Glass Acked-by: Simon Glass --- tools/image-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/image-host.c b/tools/image-host.c index 0eff720b62..7effb6cea5 100644 --- a/tools/image-host.c +++ b/tools/image-host.c @@ -689,7 +689,7 @@ int fit_add_verification_data(const char *keydir, void *keydest, void *fit, confs_noffset = fdt_path_offset(fit, FIT_CONFS_PATH); if (confs_noffset < 0) { printf("Can't find images parent node '%s' (%s)\n", - FIT_IMAGES_PATH, fdt_strerror(confs_noffset)); + FIT_CONFS_PATH, fdt_strerror(confs_noffset)); return -ENOENT; } -- cgit From 686dca0fc4eb077b089c7507f899097d001c8ce3 Mon Sep 17 00:00:00 2001 From: Heiko Schocher Date: Mon, 11 Aug 2014 11:17:08 +0200 Subject: 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: Heiko Schocher Cc: Simon Glass Acked-by: Simon Glass --- tools/fit_info.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/fit_info.c b/tools/fit_info.c index 481ac6dd81..652abcd2bd 100644 --- a/tools/fit_info.c +++ b/tools/fit_info.c @@ -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': -- cgit From 31cbe80c3346649cfe6a52e268d75ac4a338a086 Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Sat, 9 Aug 2014 18:17:47 +0200 Subject: mkimage: fix compilation issues on OpenBSD Signed-off-by: Luka Perkov --- tools/mkimage.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/mkimage.c b/tools/mkimage.c index 123d0c7d93..c70408c9ba 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -458,6 +458,7 @@ NXTARG: ; #if defined(_POSIX_SYNCHRONIZED_IO) && \ !defined(__sun__) && \ !defined(__FreeBSD__) && \ + !defined(__OpenBSD__) && \ !defined(__APPLE__) (void) fdatasync (ifd); #else @@ -501,6 +502,7 @@ NXTARG: ; #if defined(_POSIX_SYNCHRONIZED_IO) && \ !defined(__sun__) && \ !defined(__FreeBSD__) && \ + !defined(__OpenBSD__) && \ !defined(__APPLE__) (void) fdatasync (ifd); #else -- cgit