mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
Fix bug in tool/decode/zip
This commit is contained in:
parent
f147d3dde9
commit
81dd9639ed
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue