diff options
author | parazyd <parazyd@users.noreply.github.com> | 2016-12-30 14:21:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-30 14:21:19 +0100 |
commit | a092b219e97c49c41e89f0156cb545a38672b16b (patch) | |
tree | 65af78cfd9a0fe2d794e837222d2b2cc761338aa /extern/concat.h | |
parent | 1ece620783637da131451658b44c268021ba6710 (diff) | |
parent | ddc1df2f3cfdc9086fbfead94117bdb2ff034a4e (diff) |
Merge branch 'master' into master
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)); |