From 0bba327c0b21035ef5efa6ca5102e6cbf538cb75 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Thu, 7 May 2020 17:48:24 +0200 Subject: [PATCH] fin de boucle while dans utmp --- main.c | 1 + 1 file changed, 1 insertion(+) 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();