From: erg Date: Wed, 23 May 2007 17:52:58 +0000 (+0000) Subject: Alter gvUserName to check the environment for USERNAME, which should pick X-Git-Tag: LAST_LIBGRAPH~32^2~5564 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3dc6333513474ef07f9c51c21949bac82bc202cd;p=graphviz Alter gvUserName to check the environment for USERNAME, which should pick up Windows users. --- diff --git a/lib/common/utils.c b/lib/common/utils.c index 5ec3a0eac..cc9fba532 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -278,6 +278,8 @@ char *gvUsername(void) user = agxbuse(&xb); } #endif + if (user == NULL) + user = getenv ("USERNAME"); if (user == NULL) user = "Bill Gates"; return user;