diff options
Diffstat (limited to 'testing/tox_sync.c')
-rw-r--r-- | testing/tox_sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tox_sync.c b/testing/tox_sync.c index 954c64e1..382e49f9 100644 --- a/testing/tox_sync.c +++ b/testing/tox_sync.c | |||
@@ -312,7 +312,7 @@ int main(int argc, char *argv[]) | |||
312 | d = opendir(path); | 312 | d = opendir(path); |
313 | 313 | ||
314 | if (d) { | 314 | if (d) { |
315 | while ((dir = readdir(d)) != NULL) { | 315 | while ((dir = readdir(d)) != nullptr) { |
316 | VLA(char, filepath, strlen(path) + strlen(dir->d_name) + 1); | 316 | VLA(char, filepath, strlen(path) + strlen(dir->d_name) + 1); |
317 | memcpy(filepath, path, strlen(path)); | 317 | memcpy(filepath, path, strlen(path)); |
318 | memcpy(filepath + strlen(path), dir->d_name, strlen(dir->d_name) + 1); | 318 | memcpy(filepath + strlen(path), dir->d_name, strlen(dir->d_name) + 1); |
@@ -338,7 +338,7 @@ int main(int argc, char *argv[]) | |||
338 | } | 338 | } |
339 | } | 339 | } |
340 | 340 | ||
341 | tox_iterate(tox, NULL); | 341 | tox_iterate(tox, nullptr); |
342 | c_sleep(1); | 342 | c_sleep(1); |
343 | } | 343 | } |
344 | } | 344 | } |