More verbose check in AppendString.

llvm-svn: 157580
This commit is contained in:
Alexander Potapenko 2012-05-28 15:00:45 +00:00
parent e1bbb2f34a
commit db892de581
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ static inline int AppendSignedDecimal(char **buff, const char *buff_end,
static inline int AppendString(char **buff, const char *buff_end,
const char *s) {
// Avoid library functions like stpcpy here.
RAW_CHECK(s);
RAW_CHECK_MSG(s, "Error: passing a NULL pointer to AppendString\n");
int result = 0;
for (; *s; s++) {
result += AppendChar(buff, buff_end, *s);