all repos — slstatus @ ba0f0998d9e782714f1007ca3e812403e5a4d0f7

my build of slstatus (tools.suckless.org/slstatus/)

extern/concat.h: don't segfault if count == 0
raiz raiz@firemail.cc
Tue, 27 Dec 2016 20:18:33 +0300
commit

ba0f0998d9e782714f1007ca3e812403e5a4d0f7

parent

e9f738b8b6afa1d94db666d657319e0b5647cb1f

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M extern/concat.hextern/concat.h

@@ -11,6 +11,9 @@ va_list ap;

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));