mirror of
https://github.com/0intro/wmii
synced 2024-11-23 06:11:21 +03:00
Removed call to getlogin()
This commit is contained in:
parent
7169bac85c
commit
eff67dbcf6
@ -228,6 +228,7 @@ main(int argc, char *argv[])
|
||||
int i, j;
|
||||
int checkwm = 0;
|
||||
char *address = nil, *wmiirc = nil, *namespace, *errstr;
|
||||
struct passwd *passwd;
|
||||
XSetWindowAttributes wa;
|
||||
|
||||
/* command line args */
|
||||
@ -349,7 +350,8 @@ main(int argc, char *argv[])
|
||||
lbar = nil;
|
||||
key = nil;
|
||||
|
||||
user = getlogin();
|
||||
passwd = getpwuid(getuid());
|
||||
user = strdup(passwd->pw_name);
|
||||
|
||||
def.colrules.string = nil;
|
||||
def.colrules.size = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user