Don't cast the returned value from malloc()

See: http://stackoverflow.com/a/605858