Remove new-line characters from the include() errors to make it consistent
with the rest of code.
This commit is contained in:
parent
865c796663
commit
c79636c277
@ -211,7 +211,7 @@ include(const char *filename)
|
||||
#endif
|
||||
|
||||
if (((fd = open(filename, O_RDONLY)) == -1)) {
|
||||
sprintf(command_errbuf,"can't open '%s': %s\n", filename, strerror(errno));
|
||||
sprintf(command_errbuf,"can't open '%s': %s", filename, strerror(errno));
|
||||
return(CMD_ERROR);
|
||||
}
|
||||
|
||||
@ -254,7 +254,7 @@ include(const char *filename)
|
||||
free(se);
|
||||
}
|
||||
sprintf(command_errbuf, "file '%s' line %d: memory allocation "
|
||||
"failure - aborting\n", filename, line);
|
||||
"failure - aborting", filename, line);
|
||||
return (CMD_ERROR);
|
||||
}
|
||||
strcpy(sp->text, cp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user