finger

a simple finger client
Log | Files | Refs

commit 9974e6b7651fc96216e9c21c780432af7b36e5e9
parent 452909b22adef931cc1fbf15b561042364c15201
Author: Naveen Narayanan <zerous@nocebo.space>
Date:   Tue, 12 Oct 2021 02:59:36 +0200

Fix bug

set msg to point at buf[0] after send

Diffstat:
Mfinger.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/finger.c b/finger.c @@ -107,6 +107,7 @@ main(int argc, char **argv) msg += n; } while (len > 0); + msg = buf; printf("[%s]\n", hostname); do { n = recv(sockfd, msg, BUFSZ, 0);