]> andersk Git - openssh.git/commitdiff
- stevesk@cvs.openbsd.org 2001/07/23 18:21:46
authormouring <mouring>
Mon, 6 Aug 2001 21:03:23 +0000 (21:03 +0000)
committermouring <mouring>
Mon, 6 Aug 2001 21:03:23 +0000 (21:03 +0000)
     [xmalloc.c]
     no zero size xstrdup() error; ok markus@

ChangeLog
xmalloc.c

index badb911bc9c31e87a5b3be4fc894ec4f88d65a42..01e73a9c0d2e9254a664dd9cb28b95d6f6a12b86 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -26,6 +26,9 @@
    - stevesk@cvs.openbsd.org 2001/07/23 18:14:58
      [auth2.c auth-rsa.c]
      use %lu; ok markus@
+   - stevesk@cvs.openbsd.org 2001/07/23 18:21:46
+     [xmalloc.c]
+     no zero size xstrdup() error; ok markus@
 
 20010803
  - (djm) Fix interrupted read in entropy gatherer. Spotted by markus@ on
index 5046627490769c3a9926f800b001c2a3bf0fa93b..99c6ac3301ae9494c23ce59eedfc1722e7d2ed86 100644 (file)
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -13,7 +13,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: xmalloc.c,v 1.15 2001/04/16 08:05:34 deraadt Exp $");
+RCSID("$OpenBSD: xmalloc.c,v 1.16 2001/07/23 18:21:46 stevesk Exp $");
 
 #include "xmalloc.h"
 #include "log.h"
@@ -58,11 +58,10 @@ xfree(void *ptr)
 char *
 xstrdup(const char *str)
 {
-       size_t len = strlen(str) + 1;
+       size_t len;
        char *cp;
 
-       if (len == 0)
-               fatal("xstrdup: zero size");
+       len = strlen(str) + 1;
        cp = xmalloc(len);
        strlcpy(cp, str, len);
        return cp;
This page took 0.04747 seconds and 5 git commands to generate.