This commit is contained in:
anselm@garbe.us 2010-03-22 13:29:33 +00:00
parent 1a4256ef71
commit d78d10d1a1

3
sic.c
View File

@ -135,9 +135,10 @@ int
main(int argc, char *argv[]) { main(int argc, char *argv[]) {
int i, c; int i, c;
struct timeval tv; struct timeval tv;
const char *user = getenv("USER");
fd_set rd; fd_set rd;
strlcpy(nick, getenv("USER"), sizeof nick); strlcpy(nick, user ? user : "unknown", sizeof nick);
for(i = 1; i < argc; i++) { for(i = 1; i < argc; i++) {
c = argv[i][1]; c = argv[i][1];
if(argv[i][0] != '-' || argv[i][2]) if(argv[i][0] != '-' || argv[i][2])