summaryrefslogtreecommitdiffstats
path: root/sysutils/gnomefind/files/patch-ac
blob: 21bbb371e14249097369d87bb562399e3327b6ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/fstype.c	2000/05/26 09:54:55	1.1
+++ src/fstype.c	2000/05/26 10:08:03
@@ -318,7 +318,7 @@
   char *p;
 
   if (S_ISLNK (statp->st_mode))
-    p = dirname (relpath);
+    readlink(relpath, (p = malloc(MAXPATHLEN)), MAXPATHLEN);
   else
     p = relpath;
 
@@ -332,7 +332,7 @@
   else
     {
 #ifdef MFSNAMELEN		/* NetBSD.  */
-      type = xstrdup (fss.f_fstypename);
+      type = strdup (fss.f_fstypename);
 #else
       type = fstype_to_string (fss.f_type);
 #endif
OpenPOWER on IntegriCloud