Skip to content

Commit

Permalink
don't crap N extra newlines into the output
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Mar 12, 2012
1 parent 35b53fb commit e78b2f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atemsprayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int main(int argc,const char **argv){
return EXIT_FAILURE;
}
if(strncmp(ptoken,buf,delim - buf) == 0 && ptoken[delim - buf] == '\0'){
if(fprintf(curout,"%s\n",buf) <= 0){
if(fprintf(curout,"%s",buf) <= 0){
fprintf(stderr,"Error writing to %s: %s\n",curfile,strerror(errno));
return EXIT_FAILURE;
}
Expand Down

0 comments on commit e78b2f1

Please sign in to comment.