diff --git a/main.c b/main.c index 2742a3d..cdc7a42 100644 --- a/main.c +++ b/main.c @@ -32,6 +32,7 @@ void getutmp( int pid, char user[], char host_ip[] ) { sprintf(user, "%s", utmp->ut_user); sprintf(host_ip, "%s", utmp->ut_host); + break; } } endutent();