Fixed small mistake that would prevent forwarding requests.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 2 May 2000 09:10:33 +0000 (09:10 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 2 May 2000 09:10:33 +0000 (09:10 +0000)
src/net.c

index 7ee41b827c22e4ac3b882647cf553309751b38ec..69616b484740393064e173772b35566c06094382 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -962,8 +962,8 @@ cp
         {
           if(cl->buffer[i] == '\n')
             {
-              cl->buffer[i] = 0;  /* turn end-of-line into end-of-string */
               p = i + 1;
+              cl->buffer[p] = 0;  /* add end-of-string so we can use sscanf */
               break;
             }
         }