about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-20 17:28:42 -0400
committerJune McEnroe <june@causal.agency>2018-08-20 17:28:42 -0400
commitafae851319c543118f08b49b1fa804ef31e34267 (patch)
treedb60afb5dffdef83f841013209dcc6d6cd1229fd
parentAvoid unportable iswascii(3) (diff)
downloadcatgirl-afae851319c543118f08b49b1fa804ef31e34267.tar.gz
catgirl-afae851319c543118f08b49b1fa804ef31e34267.zip
Set errno in vaswprintf in case vswprintf does not
As is the case on GNU.
Diffstat (limited to '')
-rw-r--r--pls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pls.c b/pls.c
index 01df654..d768b8f 100644
--- a/pls.c
+++ b/pls.c
@@ -75,6 +75,7 @@ int vaswprintf(wchar_t **ret, const wchar_t *format, va_list ap) {
 
 		va_list _ap;
 		va_copy(_ap, ap);
+		errno = EOVERFLOW; // vswprintf may not set errno.
 		int len = vswprintf(*ret, 1 + cap, format, _ap);
 		va_end(_ap);
 
>June McEnroe 2019-12-20Source .editrc before applying -v or -eJune McEnroe 2019-12-20Disable signing commitsJune McEnroe 2019-12-19Ignore about-filterJune McEnroe 2019-12-19Fix matching make tags with no sourcesJune McEnroe 2019-12-19Avoid matching := assignments as tagsJune McEnroe 2019-12-18Hide line numbers when rendering mdocJune McEnroe 2019-12-18Customize cgit CSSJune McEnroe 2019-12-18Use :target rather than :focus pseudo-classJune McEnroe 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe 2019-12-16Post "cgit setup"June McEnroe