We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 809c7ac commit aab06b7Copy full SHA for aab06b7
src/loader.cc
@@ -489,7 +489,7 @@ int toku_loader_cleanup_temp_files(DB_ENV *env) {
489
490
result = 0;
491
while ((de = readdir(d))) {
492
- int r = memcmp(de->d_name, loader_temp_prefix, strlen(loader_temp_prefix));
+ int r = strncmp(de->d_name, loader_temp_prefix, strlen(loader_temp_prefix));
493
if (r == 0 && strlen(de->d_name) == strlen(loader_temp_prefix) + strlen(loader_temp_suffix)) {
494
int fnamelen = strlen(dir) + 1 + strlen(de->d_name) + 1; // One for the slash and one for the trailing NUL.
495
char fname[fnamelen];
0 commit comments