summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-05-13 09:15:53 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-05-13 09:15:53 +0000
commitf2a3b78b29df3bc9952521cfdcbb9aa2afeed984 (patch)
treebe191b3794929efdc467342002bd568a93e2c86e
parent1fde69991c2c3b433e1241233706e36a5c9a464f (diff)
downloaddrakx-f2a3b78b29df3bc9952521cfdcbb9aa2afeed984.tar
drakx-f2a3b78b29df3bc9952521cfdcbb9aa2afeed984.tar.gz
drakx-f2a3b78b29df3bc9952521cfdcbb9aa2afeed984.tar.bz2
drakx-f2a3b78b29df3bc9952521cfdcbb9aa2afeed984.tar.xz
drakx-f2a3b78b29df3bc9952521cfdcbb9aa2afeed984.zip
Fix previous commit
-rw-r--r--mdk-stage1/probing.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c
index f2f9fb52c..0db75ffbd 100644
--- a/mdk-stage1/probing.c
+++ b/mdk-stage1/probing.c
@@ -766,11 +766,12 @@ void find_media(enum media_bus bus)
log_message("Couldn't open /proc/partitions");
} else {
while (fgets(buf, sizeof(buf), f)) {
- char name[100] = "/dev/";
+ char name[100];
int major, minor, blocks;
struct stat statbuf;
- char *ptr;
+ char *ptr;
memset(name, 0, sizeof(name));
+ strcpy(name, "/dev/");
sscanf(buf, " %d %d %d %s", &major, &minor, &blocks, &name[5]);
if (streq(&name[5], tmp_name) && tmp[count].type == DISK && ((blocks == 1048575) || (blocks == 1440)))
tmp[count].type = FLOPPY;