Skip to content

Commit 266fd8f

Browse files
committed
Fix MyMemSet
The call to SetMem had n and c parameters reversed so that n was usually zero so nothing got cleared.
1 parent 0889dae commit 266fd8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libeg/lodepng_xtra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ int MyStrlen(const char *InString) {
105105
} // int MyStrlen()
106106

107107
VOID *MyMemSet(VOID *s, int c, size_t n) {
108-
SetMem(s, c, n);
108+
SetMem(s, n, c);
109109
return s;
110110
}
111111

0 commit comments

Comments
 (0)