1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 16:25:10 +02:00

sch2fig/git-file.c (send_data): don't pass newline to parser

We tried to do what fgets does, but file.c undid that for regular
files, so let's be compatible.
This commit is contained in:
Werner Almesberger 2016-08-02 09:56:01 -03:00
parent de0917e674
commit 91efd87b73
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@
bool file_cat(void *user, const char *line)
{
printf("%s", line);
printf("%s\n", line);
return 1;
}

View File

@ -336,7 +336,7 @@ static void send_data(const char *data, unsigned size,
send_line(p, end - p, parse, user);
return;
}
if (!send_line(p, nl - p + 1, parse, user))
if (!send_line(p, nl - p, parse, user))
return;
p = nl + 1;
}