Give no terminating LF to error() function.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano
2006-02-22 17:47:10 -08:00
parent 6dc78e696b
commit bd2afde8a3
6 changed files with 15 additions and 13 deletions

2
refs.c
View File

@ -268,7 +268,7 @@ static int write_ref_file(const char *filename,
char term = '\n';
if (write(fd, hex, 40) < 40 ||
write(fd, &term, 1) < 1) {
error("Couldn't write %s\n", filename);
error("Couldn't write %s", filename);
close(fd);
return -1;
}