--- src/icp.c.orig	Fri Feb 14 16:32:49 1997
+++ src/icp.c	Fri Feb 14 16:33:05 1997
@@ -1550,7 +1550,7 @@
     /* Use xmalloc/xmemcpy instead of xstrdup because inbuf might
      * contain NULL bytes; especially for POST data  */
     inbuf = xmalloc(icpState->in_offset + 1);
-    xstrncpy(inbuf, icpState->inbuf, icpState->in_offset + 1);
+    xmemcpy(inbuf, icpState->inbuf, icpState->in_offset + 1);
 
     /* Look for request method */
     if ((method = strtok(inbuf, "\t ")) == NULL) {
