summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-12-09 06:34:59 +0000
committerJeremy Allison <jra@samba.org>2000-12-09 06:34:59 +0000
commit407b48d8a1f74b48eb64c4c94c0aa696f70172ff (patch)
treedb83735face989704d1de7d1c47cf9ec259f7240
parentf3a0da8c0ed3523e7020950b0416180ce7630461 (diff)
downloadsamba-407b48d8a1f74b48eb64c4c94c0aa696f70172ff.tar.gz
samba-407b48d8a1f74b48eb64c4c94c0aa696f70172ff.tar.bz2
samba-407b48d8a1f74b48eb64c4c94c0aa696f70172ff.zip
Fixed typo causing coredump in file_lines_parse.
Jeremy. (This used to be commit f575f4d67a5b45e47c29de30f02901c55cef4621)
-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);
}