|
Description
|
[dep, 26Jul2007]
uu_warn_internal, used by the various forms of uu_warn and uu_die,
checks to see if it should append the error text in the following
manner:
96 if (strrchr(format, '\n') == NULL)
97 (void) fprintf(stderr, ERRNO_FMT, strerror(err));
This, unfortunately, will cause the error text to be suppressed if
text follows the last newline in the supplied message. We should
instead check that the newline is at the end of the string (which,
given the use of strrchr, the implementor probably had in mind):
(c = strrchr(format, '\n') == NULL) || c[1] != '\0'
|