svm: fix non-null-terminated string