I guess that the !_LIBC codepath isn't tested... either that, or GCC is perfectly happy to accept a two-argument function being called with three arguments. I could believe either ;)
Created attachment 205595 [details, diff] Patch to fix !_LIBC code-path
Already fixed in r51703.
hmmm, seems we managed to checkin the same patch twice then: bug #286760