debug
This commit is contained in:
parent
6017df40ff
commit
7f42eabe90
2
main.c
2
main.c
@ -134,7 +134,7 @@ int getprocinfo( int ppid, char cmdline[], char cmd[], char user[] )
|
|||||||
fgets( str, 1024, fh1);
|
fgets( str, 1024, fh1);
|
||||||
null2space( str );
|
null2space( str );
|
||||||
pos = strstr( str, "USER=") +5;
|
pos = strstr( str, "USER=") +5;
|
||||||
sscanf( user, "%s", pos);
|
sscanf( pos, "%s", user);
|
||||||
fclose(fh1);
|
fclose(fh1);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user