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

Bugfix: ignore line-feeds in getzpt().

parent 952de100
No related branches found
No related tags found
No related merge requests found
...@@ -2745,6 +2745,8 @@ void getzpt(FILE *stream, fmsghdr_t *hdr) ...@@ -2745,6 +2745,8 @@ void getzpt(FILE *stream, fmsghdr_t *hdr)
pos=ftell(stream); pos=ftell(stream);
len=fread(buf,1,0x1000,stream); len=fread(buf,1,0x1000,stream);
for(i=0;i<len;i++) { for(i=0;i<len;i++) {
if(buf[i]=='\n') /* ignore line-feeds */
continue;
if((!i || cr) && buf[i]==1) { /* kludge */ if((!i || cr) && buf[i]==1) { /* kludge */
if(!strncmp(buf+i+1,"TOPT ",5)) if(!strncmp(buf+i+1,"TOPT ",5))
hdr->destpoint=atoi(buf+i+6); 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