remove trailing LF in die() messages

LF at the end of format strings given to die() is redundant because
die already adds one on its own.

Signed-off-by: Alexander Potashev <aspotashev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Alexander Potashev
2009-01-04 21:38:41 +03:00
committed by Junio C Hamano
parent e89e2ed7c2
commit d75307084d
16 changed files with 27 additions and 27 deletions

View File

@ -115,9 +115,9 @@ static int nfvasprintf(char **strp, const char *fmt, va_list ap)
len = vsnprintf(tmp, sizeof(tmp), fmt, ap);
if (len < 0)
die("Fatal: Out of memory\n");
die("Fatal: Out of memory");
if (len >= sizeof(tmp))
die("imap command overflow !\n");
die("imap command overflow!");
*strp = xmemdupz(tmp, len);
return len;
}
@ -482,7 +482,7 @@ static int nfsnprintf(char *buf, int blen, const char *fmt, ...)
va_start(va, fmt);
if (blen <= 0 || (unsigned)(ret = vsnprintf(buf, blen, fmt, va)) >= (unsigned)blen)
die("Fatal: buffer too small. Please report a bug.\n");
die("Fatal: buffer too small. Please report a bug.");
va_end(va);
return ret;
}