* lib/subordinateio.c: Fix count for ranges truncated in
remove_range().
+2013-08-13 Nicolas François <nicolas.francois@centraliens.net>
+
+ * lib/subordinateio.c: Fix count for ranges truncated in
+ remove_range().
+
2013-08-13 Nicolas François <nicolas.francois@centraliens.net>
* src/su.c: Terminate the child (if needed) before closing the PAM
}
/* Is just the end of the entry removed? */
else if ((start > first) && (end >= last)) {
- range->count = (start - range->start) + 1;
+ range->count = start - range->start;
ent->changed = true;
db->changed = true;
if (!commonio_append(db, &tail))
return 0;
- range->count = (start - range->start) + 1;
+ range->count = start - range->start;
ent->changed = true;
db->changed = true;