]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
buglet
authorwessels <>
Fri, 15 Nov 1996 02:04:23 +0000 (02:04 +0000)
committerwessels <>
Fri, 15 Nov 1996 02:04:23 +0000 (02:04 +0000)
lib/util.c

index 2a7ed579d6b1f4af15e4cda477fc0b6228ccafb9..a6abb00bc8b99ddb331085feaf3333ba4d64d76b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: util.c,v 1.25 1996/11/14 19:02:11 wessels Exp $
+ * $Id: util.c,v 1.26 1996/11/14 19:04:23 wessels Exp $
  *
  * DEBUG: 
  * AUTHOR: Harvest Derived
@@ -475,7 +475,7 @@ xstrncpy(char *dst, const char *src, size_t n)
 {
     if (n != 0) {
        if (src != NULL)
-           while (--n != 0 && *src != '\0')
+           while (n-- != 0 && *src != '\0')
                *dst++ = *src++;
        *dst = '\0';
     }