diff options
Diffstat (limited to 'ncpd/main.cc')
-rw-r--r-- | ncpd/main.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ncpd/main.cc b/ncpd/main.cc index 2392d09..76d0bb2 100644 --- a/ncpd/main.cc +++ b/ncpd/main.cc @@ -27,10 +27,11 @@ #endif #include <stdio.h> -#include <string.h> +#include <string> #include <stream.h> #include <stdlib.h> #include <signal.h> +#include <errno.h> #include "ncp.h" #include "bufferstore.h" @@ -64,8 +65,8 @@ int_handler(int) void checkForNewSocketConnection(ppsocket & skt, int &numScp, socketChan ** scp, ncp * a, IOWatch & iow) { - char peer[201]; - ppsocket *next = skt.accept(peer, 200); + string peer; + ppsocket *next = skt.accept(&peer); if (next != NULL) { // New connect if (verbose) |