From d7c386cc9b7c968881bb3671dc4cfb53e1d444cb Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Thu, 7 May 2020 19:19:34 +0200 Subject: [PATCH] debug --- main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index 461456c..bdc905b 100644 --- a/main.c +++ b/main.c @@ -107,16 +107,16 @@ int getprocinfo( int ppid, char cmdline[], char cmd[], char user[], char host_ip int pid = ppid; int level = 0; int retval = 0; - time_t *timet=0; + time_t timet=0; - getutmp( pid, user, host_ip, timet ); + getutmp( pid, user, host_ip, &timet ); if ( timet != 0) { - sprintf(date, "%s", ctime(timet)); + sprintf(date, "%s", ctime(&timet)); }else { - time( timet ); - sprintf( date, "%s", ctime( timet)); + time( &timet ); + sprintf( date, "%s", ctime(&timet) ); date[strlen(date)-1] = 0; } while ( flag == 0)