projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88f50b6
)
Added fix from David Vrabel <dvrabel@arcom.co.uk> for a
author
Eric Andersen
<andersen@codepoet.org>
Fri, 11 Aug 2000 17:45:02 +0000
(17:45 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Fri, 11 Aug 2000 17:45:02 +0000
(17:45 -0000)
buffer overrun in find_real_root_device(), fixing bug #1019
-Erik
utility.c
patch
|
blob
|
history
diff --git
a/utility.c
b/utility.c
index 3422d997a6bc669b2fe0b55ae53f0be71ea9e0ee..28e333e6fea456f3b73b683ec764bb986fe486b3 100644
(file)
--- a/
utility.c
+++ b/
utility.c
@@
-1636,7
+1636,7
@@
extern int find_real_root_device_name(char* name)
if (strcmp(entry->d_name, "..") == 0)
continue;
- s
printf( fileName
, "/dev/%s", entry->d_name);
+ s
nprintf( fileName, strlen(name)+1
, "/dev/%s", entry->d_name);
if (stat(fileName, &statBuf) != 0)
continue;