diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-06-27 15:07:30 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-06-27 15:07:30 +0000 |
commit | 112dc1f135b5e960bba6188f8845382c5551ed8b (patch) | |
tree | 0d6517a24d9a5b6cefa482fcb772a78c037b07ce /soelim.c | |
parent | 1bd25a143cc0c80e32fa939ecbe1d27ea3e4a03d (diff) | |
download | mandoc-112dc1f135b5e960bba6188f8845382c5551ed8b.tar.gz |
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 'soelim.c')
0 files changed, 0 insertions, 0 deletions