Skip to content

Commit

Permalink
Fix bug in tool/decode/zip
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Jul 28, 2024
1 parent f147d3d commit 81dd963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/decode/zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ char *xiso8601(struct timespec ts) {
ptr += snprintf(ptr, end - ptr, "%09ld", ts.tv_nsec);
ptr += strftime(ptr, end - ptr, "%z", &tm);
unassert(ptr + 1 <= end);
unassert(realloc_in_place(res, ptr - end) == res);
unassert(realloc_in_place(res, ptr + 1 - res) == res);
return res;
}

Expand Down

0 comments on commit 81dd963

Please sign in to comment.