Fixed problem with undersized string buffer