diff options
author | Aaron Marcher <info@nulltime.net> | 2016-12-29 23:27:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-29 23:27:57 +0100 |
commit | e3c9a6f92313b9e2ac1b409895b70fd09f6c774d (patch) | |
tree | 16dd82f604dcc96db25d152dd986506366d952da /extern/concat.h | |
parent | 7392dbabebe69187618f31301a7842d4d2993966 (diff) | |
parent | 015f832c3a52a7c49c0181d85ab39eec7b8489a0 (diff) |
Merge pull request #32 from R41z/master
several bugfixes and general improvements, see commits below.
Diffstat (limited to 'extern/concat.h')
-rw-r--r-- | extern/concat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extern/concat.h b/extern/concat.h index 7f2ea46..0f3be99 100644 --- a/extern/concat.h +++ b/extern/concat.h @@ -11,6 +11,9 @@ ccat(const unsigned short int count, ...) unsigned short int i; concat[0] = '\0'; + if (count == 0) + return; + va_start(ap, count); for(i = 0; i < count; i++) strlcat(concat, va_arg(ap, char *), sizeof(concat)); |