From f2a3b78b29df3bc9952521cfdcbb9aa2afeed984 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 13 May 2010 09:15:53 +0000 Subject: Fix previous commit --- mdk-stage1/probing.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mdk-stage1') 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; -- cgit v1.2.1