mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 22:12:43 +00:00
Fix wrong separator output
Submitted by: julian Obtained from: newsgroup?
This commit is contained in:
parent
3682d2baf0
commit
eaf9238016
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7200
@ -218,7 +218,8 @@ f_cut(fp, fname)
|
|||||||
int output;
|
int output;
|
||||||
char lbuf[_POSIX2_LINE_MAX + 1];
|
char lbuf[_POSIX2_LINE_MAX + 1];
|
||||||
|
|
||||||
for (sep = dchar, output = 0; fgets(lbuf, sizeof(lbuf), fp);) {
|
for (sep = dchar; fgets(lbuf, sizeof(lbuf), fp);) {
|
||||||
|
output = 0;
|
||||||
for (isdelim = 0, p = lbuf;; ++p) {
|
for (isdelim = 0, p = lbuf;; ++p) {
|
||||||
if (!(ch = *p))
|
if (!(ch = *p))
|
||||||
err("%s: line too long.\n", fname);
|
err("%s: line too long.\n", fname);
|
||||||
|
Loading…
Reference in New Issue
Block a user