Replaced external function standard incompatible use of string buffer. Fixes #27