Skip to content

Commit

Permalink
Use correct mtime argument.
Browse files Browse the repository at this point in the history
From ChrisAm1224 in #435.
  • Loading branch information
0-wiz-0 committed May 19, 2024
1 parent a1a6778 commit a7a9452
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions THANKS
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Cédric Tabin
celan69
chaoticgd
Charlie Li <git@vishwin.info>
ChrisAm1224
Chris Nehren <cnehren+libzip@pobox.com>
Christoph Cullmann <cullmann@kde.org>
Christoph M. Becker <cmbecker69@gmx.de>
Expand Down
2 changes: 1 addition & 1 deletion lib/zip_close.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ add_data(zip_t *za, zip_source_t *src, zip_dirent_t *de, zip_uint32_t changed) {
else {
time(&mtime);
}
if (_zip_u2d_time(st.mtime, &de->last_mod, &za->error) < 0) {
if (_zip_u2d_time(mtime, &de->last_mod, &za->error) < 0) {
return -1;
}
}
Expand Down

0 comments on commit a7a9452

Please sign in to comment.