Fixed libc qsort implementation to not read one past the end.
__printf's %S needs a str argument, not int.