add, then use, xvasprintf, checking for appropriate return.

This commit is contained in:
okan
2020-01-22 19:58:35 +00:00
parent 2fc191f978
commit 83de84b7f8
3 changed files with 16 additions and 8 deletions

View File

@@ -598,5 +598,7 @@ char *xstrdup(const char *);
int xasprintf(char **, const char *, ...)
__attribute__((__format__ (printf, 2, 3)))
__attribute__((__nonnull__ (2)));
int xvasprintf(char **, const char *, va_list)
__attribute__((__nonnull__ (2)));
#endif /* _CALMWM_H_ */