This website works better with JavaScript.
Home
Explore
Help
Sign In
rinri
/
slstatus
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
extern/concat.h: don't segfault if count == 0
master
raiz
7 years ago
parent
e9f738b8b6
commit
ba0f0998d9
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
extern/concat.h
+ 3
- 0
extern/concat.h
View File
@@ -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));
Write
Preview
Loading…
Cancel
Save