...when building with glibc 2.10. This code was pretty obviously wrong, not clear how it wasn't spotted sooner.