1
0
This commit is contained in:
Daniel Tartavel 2020-05-06 17:23:25 +02:00
parent 6017df40ff
commit 7f42eabe90

2
main.c
View File

@ -134,7 +134,7 @@ int getprocinfo( int ppid, char cmdline[], char cmd[], char user[] )
fgets( str, 1024, fh1);
null2space( str );
pos = strstr( str, "USER=") +5;
sscanf( user, "%s", pos);
sscanf( pos, "%s", user);
fclose(fh1);
return retval;
}