summaryrefslogtreecommitdiff
path: root/recipes/makedevs/makedevs-1.0.0
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2009-10-22 00:18:22 +0200
committerAndrea Adami <andrea.adami@gmail.com>2009-10-22 00:31:01 +0200
commit243600420c28acd7ef4b2dfc46862f9151972657 (patch)
treed74258ef2f36887b7430dff20d5385b4b0b4ddf8 /recipes/makedevs/makedevs-1.0.0
parentbd9190c53157c64620fb08f0349d8d7d6a64fb79 (diff)
makedevs: fix interpretation of device table (count).
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Diffstat (limited to 'recipes/makedevs/makedevs-1.0.0')
-rw-r--r--recipes/makedevs/makedevs-1.0.0/makedevs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/makedevs/makedevs-1.0.0/makedevs.c b/recipes/makedevs/makedevs-1.0.0/makedevs.c
index c7ad722f2e..80f21f0841 100644
--- a/recipes/makedevs/makedevs-1.0.0/makedevs.c
+++ b/recipes/makedevs/makedevs-1.0.0/makedevs.c
@@ -221,7 +221,7 @@ static int interpret_table_entry(char *line)
dev_t rdev;
char buf[80];
- for (i = start; i < count; i++) {
+ for (i = start; i < start+count; i++) {
sprintf(buf, "%s%d", name, i);
/* FIXME: MKDEV uses illicit insider knowledge of kernel
* major/minor representation... */