: nply/fiche2

commit 318987c10021078baad8aa2cf4463bf8ee1cf74e
parent a85e04d8160a30c2a6e365b59189842fc5bca670
Author: Renaud Allard <renaud@allard.it>
Date: Thu, 27 Aug 2015 10:33:39 +0200

Correct a typo: lenght -> length
1 file changed, 2 insertions(+), 2 deletions(-)
M
fiche.c
|
4
++--
diff --git a/fiche.c b/fiche.c
@@ -107,8 +107,8 @@ void perform_connection(int listen_socket)
     pthread_t thread_id;
     struct sockaddr_in client_address;
     
-    int address_lenght = sizeof(client_address);
-    int connection_socket = accept(listen_socket, (struct sockaddr *) &client_address, (void *) &address_lenght);
+    int address_length = sizeof(client_address);
+    int connection_socket = accept(listen_socket, (struct sockaddr *) &client_address, (void *) &address_length);
 
     struct timeval timeout;
     timeout.tv_sec = 5;