From 7f42eabe902e1526430f4aac3eb81f84dd5277a5 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Wed, 6 May 2020 17:23:25 +0200 Subject: [PATCH] debug --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index ca87dec..83cdbfc 100644 --- a/main.c +++ b/main.c @@ -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; }