> sic segfaults when USER environment variable is not set (so
> getenv("USER") returns NULL):
This does the trick, at no line cost. I assume that when compiled, the
two getenv calls can be merged into one, optimisation wise. Not that
it's a major speed problem.
169c169
< strncpy(nick, getenv("USER"), sizeof nick);
--- > strncpy(nick, getenv("USER") ? getenv("USER") : "lolidunno", sizeof nick);Received on Sat Mar 20 2010 - 19:24:07 UTC
This archive was generated by hypermail 2.2.0 : Sat Mar 20 2010 - 19:36:02 UTC