aboutsummaryrefslogtreecommitdiffstats
path: root/indep.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-02 16:26:08 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-02 16:26:08 +0000
commitba4557fc9d049b27fce357301c72433139f2a44a (patch)
tree341367a1626bfdd732a9a569c2f95edeab3b4406 /indep.c
parent[w3m-dev 02604] (diff)
downloadw3m-ba4557fc9d049b27fce357301c72433139f2a44a.tar.gz
w3m-ba4557fc9d049b27fce357301c72433139f2a44a.zip
[w3m-dev 02605]
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Diffstat (limited to '')
-rw-r--r--indep.c6
1 files changed, 3 insertions, 3 deletions
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 <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') {