Commit 548fbf60 authored by Bernhard Link's avatar Bernhard Link

avoid producing control-chunks with double newlines

parent e6fdc801
......@@ -511,7 +511,7 @@ char *chunk_replacefields(const char *chunk,const struct fieldtoadd *toadd,const
/* and proceed with the next */
c = ce;
} while( *c != '\0' );
} while( *c != '\0' && *c != '\n' );
*n = '\0';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment