aboutsummaryrefslogtreecommitdiffstats
path: root/etc.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 /etc.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 'etc.c')
-rw-r--r--etc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc.c b/etc.c
index a828970..81e7516 100644
--- a/etc.c
+++ b/etc.c
@@ -1,4 +1,4 @@
-/* $Id: etc.c,v 1.8 2001/11/24 02:01:26 ukai Exp $ */
+/* $Id: etc.c,v 1.9 2001/12/02 16:26:08 ukai Exp $ */
#include "fm.h"
#include <pwd.h>
#include "myctype.h"
@@ -640,7 +640,7 @@ lastFileName(char *path)
p++;
}
- return allocStr(q, 0);
+ return allocStr(q, -1);
}
#ifndef HAVE_BCOPY
@@ -704,7 +704,7 @@ mybasename(char *s)
p++;
else
p = s;
- return allocStr(p, 0);
+ return allocStr(p, -1);
}
char *
@@ -1518,7 +1518,7 @@ FQDN(char *host)
if (!(entry = gethostbyname(host)))
return NULL;
- return allocStr(entry->h_name, 0);
+ return allocStr(entry->h_name, -1);
#else /* INET6 */
for (af = ai_family_order_table[DNS_order];; af++) {
int error;