aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/git-hooks/commit-msg
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2025-11-01 17:42:59 -0600
committerPaul Eggert <eggert@cs.ucla.edu>2025-11-01 18:00:32 -0600
commit70bb8fa34f52b961ceaf63f61645e06d9f14446e (patch)
tree91d9e920cfbc3e34a27fc9a94aee2cfab21427d6 /scripts/git-hooks/commit-msg
parentls: better nstrftime failure check (diff)
downloadcoreutils-70bb8fa34f52b961ceaf63f61645e06d9f14446e.tar.gz
coreutils-70bb8fa34f52b961ceaf63f61645e06d9f14446e.zip
pr: improve nstrftime failure check
* src/pr.c (init_header): Do not report an nstrftime EOVERFLOW error as memory exhaustion. Instead, output the time as an integer. Also, work even if nstrftime (nullptr, SIZE_MAX, ...) would return PTRDIFF_MAX which means adding 1 would overflow..
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions