summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/patch.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2019-06-27 15:05:14 +0000
committerschwarze <schwarze@openbsd.org>2019-06-27 15:05:14 +0000
commit0c0f292b91b993fab57edb11605fbe6e7972104d (patch)
tree2464e24432236307cde107c9fe9374f7d74f66f2 /usr.bin/patch/patch.c
parentMove the check wether line is NULL above further accesses of it. (diff)
downloadwireguard-openbsd-0c0f292b91b993fab57edb11605fbe6e7972104d.tar.xz
wireguard-openbsd-0c0f292b91b993fab57edb11605fbe6e7972104d.zip
Fix mandoc_normdate() and the way it is used.
In the past, it could return NULL but the calling code wasn't prepared to handle that. Make sure it always returns an allocated string. While here, simplify the code by handling the "quick" attribute inside mandoc_normdate() rather than at multiple callsites. Triggered by deraadt@ pointing out that snprintf(3) error handling was incomplete in time2a().
Diffstat (limited to 'usr.bin/patch/patch.c')
0 files changed, 0 insertions, 0 deletions