slock with DPMS and other tweaks
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use NUL character constant explicitly

authored by

FRIGN and committed by
Markus Teich
b099d2fd 0a43b78d

+2 -2
+2 -2
slock.c
··· 158 158 continue; 159 159 switch (ksym) { 160 160 case XK_Return: 161 - passwd[len] = 0; 161 + passwd[len] = '\0'; 162 162 errno = 0; 163 163 if (!(inputhash = crypt(passwd, hash))) 164 164 fprintf(stderr, "slock: crypt: %s\n", strerror(errno)); ··· 177 177 break; 178 178 case XK_BackSpace: 179 179 if (len) 180 - passwd[len--] = 0; 180 + passwd[len--] = '\0'; 181 181 break; 182 182 default: 183 183 if (num && !iscntrl((int)buf[0]) &&