Use bb_xstrdup() instead of strdup().
authorManuel Novoa III <mjn3@codepoet.org>
Sun, 1 Feb 2004 07:34:28 +0000 (07:34 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Sun, 1 Feb 2004 07:34:28 +0000 (07:34 -0000)
coreutils/expr.c

index fdb4e3997c99cb22e8ead5fae940d5158bf9dc5f..77d603b88a1b3e74e21c80ff46630610569d5ffe 100644 (file)
@@ -117,7 +117,7 @@ static VALUE *str_value (char *s)
 
        v = xmalloc (sizeof(VALUE));
        v->type = string;
-       v->u.s = strdup (s);
+       v->u.s = bb_xstrdup (s);
        return v;
 }