Fix bug in tool/decode/zip

This commit is contained in:
Justine Tunney 2024-07-27 18:34:21 -07:00
parent f147d3dde9
commit 81dd9639ed
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -78,7 +78,7 @@ char *xiso8601(struct timespec ts) {
ptr += snprintf(ptr, end - ptr, "%09ld", ts.tv_nsec); ptr += snprintf(ptr, end - ptr, "%09ld", ts.tv_nsec);
ptr += strftime(ptr, end - ptr, "%z", &tm); ptr += strftime(ptr, end - ptr, "%z", &tm);
unassert(ptr + 1 <= end); unassert(ptr + 1 <= end);
unassert(realloc_in_place(res, ptr - end) == res); unassert(realloc_in_place(res, ptr + 1 - res) == res);
return res; return res;
} }