projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ab68ad
)
pxe: properly null-terminate packet after tftp://
author
H. Peter Anvin
<hpa@zytor.com>
Mon, 21 Jun 2010 07:18:08 +0000
(
00:18
-0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Mon, 21 Jun 2010 07:18:08 +0000
(
00:18
-0700)
Properly null-terminate the output from a parsed tftp:// URL.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs/pxe/pxe.c
patch
|
blob
|
history
diff --git
a/core/fs/pxe/pxe.c
b/core/fs/pxe/pxe.c
index
a94a8d0
..
26b6a01
100644
(file)
--- a/
core/fs/pxe/pxe.c
+++ b/
core/fs/pxe/pxe.c
@@
-477,7
+477,7
@@
static void fill_buffer(struct inode *inode)
{
int err;
int last_pkt;
- const uint8_t *timeout_ptr
= TimeoutTable
;
+ const uint8_t *timeout_ptr;
uint8_t timeout;
uint16_t buffersize;
uint32_t oldtime;
@@
-730,6
+730,7
@@
static void pxe_searchdir(const char *filename, struct file *file)
*buf++ = *np++;
}
}
+ *buf = '\0';
break;
}