bugfix
This commit is contained in:
parent
1a4256ef71
commit
d78d10d1a1
3
sic.c
3
sic.c
@ -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])
|
||||||
|
Loading…
Reference in New Issue
Block a user