git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c73da92
)
boot: Use strlcpy() in label_boot()
author
Simon Glass
<sjg@chromium.org>
Thu, 6 Mar 2025 00:25:03 +0000
(17:25 -0700)
committer
Tom Rini
<trini@konsulko.com>
Tue, 18 Mar 2025 19:12:15 +0000
(13:12 -0600)
This function is recommended instead of strncpy() since it always
terminates the string.
Signed-off-by: Simon Glass <sjg@chromium.org>
boot/pxe_utils.c
patch
|
blob
|
history
diff --git
a/boot/pxe_utils.c
b/boot/pxe_utils.c
index
82f217a
..
e969358
100644
(file)
--- a/
boot/pxe_utils.c
+++ b/
boot/pxe_utils.c
@@
-558,7
+558,7
@@
static int label_boot(struct pxe_context *ctx, struct pxe_label *label)
}
if (label->append)
- str
n
cpy(bootargs, label->append, sizeof(bootargs));
+ str
l
cpy(bootargs, label->append, sizeof(bootargs));
strcat(bootargs, ip_str);
strcat(bootargs, mac_str);