blob: 18e2eeec29ede2374486edeeab23ecbdc86684b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ab,v 1.2 2010/04/29 00:22:02 dholland Exp $
--- focal2.c.orig 1995-04-17 13:03:46.000000000 +0000
+++ focal2.c
@@ -71,7 +71,7 @@ void library()
}
line = NULL;
sctp = ctp;
- while (getline(abuf, fp) != 0) {
+ while (get_line(abuf, fp) != 0) {
ctp = abuf;
if ((c=getnb()) != 0) {
if (isdigit(c) == 0)
@@ -138,7 +138,7 @@ void library()
|| strcmp(de->d_name, ".") == 0
|| strcmp(de->d_name, "..") == 0)
continue;
- printf("%.*s\n", de->d_reclen, de->d_name);
+ printf("%.*s\n", de->d_namlen, de->d_name);
}
closedir(dp);
#else
|