projects
/
petitboot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7357537
)
Fix random bytes in string in kboot parser
author
Jeremy Kerr
<jk@ozlabs.org>
Thu, 5 Apr 2007 09:19:35 +0000
(19:19 +1000)
committer
Jeremy Kerr
<jk@ozlabs.org>
Thu, 5 Apr 2007 09:19:35 +0000
(19:19 +1000)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
devices/kboot-parser.c
patch
|
blob
|
history
diff --git
a/devices/kboot-parser.c
b/devices/kboot-parser.c
index ba4fbf5f26bad3b6b43e49f8229aa3d18e967400..b845d8498779184a5bbe576f9c7c45161838fab0 100644
(file)
--- a/
devices/kboot-parser.c
+++ b/
devices/kboot-parser.c
@@
-106,6
+106,7
@@
static int parse_option(struct boot_option *opt, char *config)
opt->boot_image_file = join_paths(mountpoint, config);
cmdline = malloc(buf_size);
+ *cmdline = 0;
for (pos++; pos;) {
pos = get_param_pair(pos, &name, &value, ' ');