summaryrefslogtreecommitdiff
path: root/recipes/makedevs/makedevs-1.0.0/makedevs.c
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/makedevs/makedevs-1.0.0/makedevs.c')
-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... */