diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-02 16:26:08 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-02 16:26:08 +0000 |
commit | ba4557fc9d049b27fce357301c72433139f2a44a (patch) | |
tree | 341367a1626bfdd732a9a569c2f95edeab3b4406 /indep.c | |
parent | [w3m-dev 02604] (diff) | |
download | w3m-ba4557fc9d049b27fce357301c72433139f2a44a.tar.gz w3m-ba4557fc9d049b27fce357301c72433139f2a44a.zip |
[w3m-dev 02605]
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Diffstat (limited to 'indep.c')
-rw-r--r-- | indep.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 <stdio.h> #include <pwd.h> @@ -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') { |