Introduction
Introduction Statistics Contact Development Disclaimer Help
bugfix - sic - simple irc client
git clone git://git.suckless.org/sic
Log
Files
Refs
README
LICENSE
---
commit d78d10d1a17e24c3b9ee0a9892c84035a95c413d
parent 1a4256ef71ddba6c3cbb28861e0321184860653f
Author: [email protected] <unknown>
Date: Mon, 22 Mar 2010 13:29:33 +0000
bugfix
Diffstat:
M sic.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/sic.c b/sic.c
@@ -135,9 +135,10 @@ int
main(int argc, char *argv[]) {
int i, c;
struct timeval tv;
+ const char *user = getenv("USER");
fd_set rd;
- strlcpy(nick, getenv("USER"), sizeof nick);
+ strlcpy(nick, user ? user : "unknown", sizeof nick);
for(i = 1; i < argc; i++) {
c = argv[i][1];
if(argv[i][0] != '-' || argv[i][2])
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.