Mailinglist Archive: opensuse-bugs (3517 mails)

< Previous Next >
[Bug 673303] convert spits out rubbish to standard output

--- Comment #14 from Marcus Meissner <meissner@xxxxxxxx> 2011-09-06 14:54:25
UTC ---
sterror_r has funny semantics.

man 3 sterror_r

The GNU-specific strerror_r() returns a pointer to a string containing
the error message. This may be either a
pointer to a string that the function stores in buf, or a pointer to
some (immutable) static string (in which case
buf is unused). If the function stores a string in buf, then at most
buflen bytes are stored (the string may be
truncated if buflen is too small) and the string always includes a
terminating null byte.

it seems we use thje _GNU_SOURCE version, where the passed in buffer might
be unused.

so it should use the return value of strerror_r() here.

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >