From ba4557fc9d049b27fce357301c72433139f2a44a Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sun, 2 Dec 2001 16:26:08 +0000 Subject: [w3m-dev 02605] From: Kiyokazu SUTO --- indep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'indep.c') diff --git a/indep.c b/indep.c index 5f5a2f5..827ec09 100644 --- a/indep.c +++ b/indep.c @@ -1,4 +1,4 @@ -/* $Id: indep.c,v 1.13 2001/11/27 18:29:24 ukai Exp $ */ +/* $Id: indep.c,v 1.14 2001/12/02 16:26:08 ukai Exp $ */ #include "fm.h" #include #include @@ -18,7 +18,7 @@ allocStr(const char *s, int len) if (s == NULL) return NULL; - if (len == 0) + if (len < 0) len = strlen(s); ptr = NewAtom_N(char, len + 1); if (ptr == NULL) { @@ -80,7 +80,7 @@ cleanupName(char *name) { char *buf, *p, *q; - buf = allocStr(name, 0); + buf = allocStr(name, -1); p = buf; q = name; while (*q != '\0') { -- cgit v1.2.3