summaryrefslogtreecommitdiffstats
path: root/usr.bin/locate/locate/fastfind.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/locate/locate/fastfind.c')
-rw-r--r--usr.bin/locate/locate/fastfind.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/locate/locate/fastfind.c b/usr.bin/locate/locate/fastfind.c
index 8e29355..e132dbd 100644
--- a/usr.bin/locate/locate/fastfind.c
+++ b/usr.bin/locate/locate/fastfind.c
@@ -103,6 +103,7 @@ statistic (fp, path_fcodes)
}
#endif /* _LOCATE_STATISTIC_ */
+extern char separator;
void
#ifdef FF_MMAP
@@ -315,11 +316,11 @@ fastfind
else if (f_limit) {
counter++;
if (f_limit >= counter)
- (void)puts(path);
+ (void)printf("%s%c",path,separator);
else
errx(0, "[show only %d lines]", counter - 1);
} else
- (void)puts(path);
+ (void)printf("%s%c",path,separator);
}
break;
}
OpenPOWER on IntegriCloud