diff options
-rw-r--r-- | common/cmd_pxe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c index a1aa69aed..9f1c14d2d 100644 --- a/common/cmd_pxe.c +++ b/common/cmd_pxe.c @@ -666,7 +666,7 @@ static int label_boot(struct pxe_label *label) len += strlen(label->append); if (len) { - bootargs = malloc(len); + bootargs = malloc(len + 1); if (!bootargs) return 1; bootargs[0] ='\0'; |