Skip to content

Commit

Permalink
Fixed formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz authored Sep 10, 2018
1 parent 777db81 commit 1b3ce71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions minizip.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ int main(int argc, const char *argv[])
else if (do_erase)
{
strncpy(tmp_path, path, sizeof(tmp_path) - 1);
tmp_path[sizeof(tmp_path) - 1] = '\0';
tmp_path[sizeof(tmp_path) - 1] = 0;
strncat(tmp_path, ".tmp", sizeof(tmp_path) - strlen(tmp_path) - 1);

err = minizip_erase(path, tmp_path, argc - (path_arg + 1), &argv[path_arg + 1]);
Expand All @@ -605,7 +605,7 @@ int main(int argc, const char *argv[])
{
// Swap zip with temporary zip, backup old zip if possible
strncpy(bak_path, path, sizeof(bak_path) - 1);
bak_path[sizeof(bak_path) - 1] = '\0';
bak_path[sizeof(bak_path) - 1] = 0;
strncat(bak_path, ".bak", sizeof(bak_path) - strlen(bak_path) - 1);

if (mz_os_file_exists(bak_path) == MZ_OK)
Expand All @@ -620,4 +620,4 @@ int main(int argc, const char *argv[])

return err;
}
#endif
#endif

0 comments on commit 1b3ce71

Please sign in to comment.