diff options
Diffstat (limited to 'libbb/compare_string_array.c')
-rw-r--r-- | libbb/compare_string_array.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbb/compare_string_array.c b/libbb/compare_string_array.c index 7b5ce856d..151b50817 100644 --- a/libbb/compare_string_array.c +++ b/libbb/compare_string_array.c | |||
@@ -70,9 +70,9 @@ int index_in_substrings(const char *strings, const char *key) | |||
70 | 70 | ||
71 | const char *nth_string(const char *strings, int n) | 71 | const char *nth_string(const char *strings, int n) |
72 | { | 72 | { |
73 | while (n) { | 73 | while (n) { |
74 | n--; | 74 | n--; |
75 | strings += strlen(strings) + 1; | 75 | strings += strlen(strings) + 1; |
76 | } | 76 | } |
77 | return strings; | 77 | return strings; |
78 | } | 78 | } |