untested bug fix

This commit is contained in:
Marc
2022-10-03 21:23:10 +02:00
parent e2429fee05
commit aaf3b9527e
6 changed files with 142 additions and 107 deletions
+2 -2
View File
@@ -27,10 +27,10 @@ void fixPath(char * path) {
}
}
int countUntilNull(void * pointers) {
int countUntilNull(void * pointers, size_t typeSize) {
int i = 0;
while(pointers != NULL) {
pointers++;
pointers += typeSize;
i++;
}
return i;