Skip to content

Commit 917f72e

Browse files
th-ottomfro0
authored andcommitted
Remove a misplaced semicolon that accidentally terminated a loop
1 parent d8a60fa commit 917f72e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/strncmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int strncmp(const char *s1, const char *s2, size_t max)
1212
int i;
1313
int cmp;
1414

15-
for (i = 0; i < max && *s1++ && *s2++; i++);
15+
for (i = 0; i < max && *s1++ && *s2++; i++)
1616
{
1717
cmp = (*s1 - *s2);
1818
if (cmp != 0) return cmp;

0 commit comments

Comments
 (0)