]> granicus.if.org Git - graphviz/commitdiff
Alter gvUserName to check the environment for USERNAME, which should pick
authorerg <devnull@localhost>
Wed, 23 May 2007 17:52:58 +0000 (17:52 +0000)
committererg <devnull@localhost>
Wed, 23 May 2007 17:52:58 +0000 (17:52 +0000)
up Windows users.

lib/common/utils.c

index 5ec3a0eac9ad90edaff3b265768824a1fb56f5d9..cc9fba532959b6094ed604b71eddc57a6aa82e70 100644 (file)
@@ -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;