sic

simple irc client
git clone git://git.suckless.org/sic
Log | Files | Refs | README | LICENSE

commit d78d10d1a17e24c3b9ee0a9892c84035a95c413d
parent 1a4256ef71ddba6c3cbb28861e0321184860653f
Author: anselm@garbe.us <unknown>
Date:   Mon, 22 Mar 2010 13:29:33 +0000

bugfix
Diffstat:
Msic.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])