summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/util_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_file.c b/source3/lib/util_file.c
index 1184dd0634..023f3e131c 100644
--- a/source3/lib/util_file.c
+++ b/source3/lib/util_file.c
@@ -435,7 +435,7 @@ static char **file_lines_parse(char *p, size_t size, int *numlines, BOOL convert
}
if (convert) {
- for (i = 0; i < *numlines; i++)
+ for (i = 0; ret[i]; i++)
unix_to_dos(ret[i], True);
}