Skip to content
Snippets Groups Projects
Commit 6bcd43b7 authored by rswindell's avatar rswindell
Browse files

Bugfix: ignore line-feeds in getzpt().

parent 952de100
Branches
Tags
No related merge requests found
......@@ -2745,6 +2745,8 @@ void getzpt(FILE *stream, fmsghdr_t *hdr)
pos=ftell(stream);
len=fread(buf,1,0x1000,stream);
for(i=0;i<len;i++) {
if(buf[i]=='\n') /* ignore line-feeds */
continue;
if((!i || cr) && buf[i]==1) { /* kludge */
if(!strncmp(buf+i+1,"TOPT ",5))
hdr->destpoint=atoi(buf+i+6);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment