Skip to content

Commit

Permalink
Fix bug in telnet server program
Browse files Browse the repository at this point in the history
  • Loading branch information
maximecb committed Nov 7, 2023
1 parent 0ba1121 commit 2a04f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ncc/examples/telnet_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void on_new_conn(u64 socket_id)
puts("got new connection");

char client_addr[128];
u64 conn_sock = net_accept(socket_id, client_addr, sizeof(128), on_incoming_data);
u64 conn_sock = net_accept(socket_id, client_addr, 128, on_incoming_data);
}

void on_incoming_data(u64 socket_id, u64 num_bytes)
Expand Down

0 comments on commit 2a04f04

Please sign in to comment.