diff --git a/stt/sttselvas.go b/stt/sttselvas.go index 5d69a65..773a4a0 100644 --- a/stt/sttselvas.go +++ b/stt/sttselvas.go @@ -13,15 +13,16 @@ char* getResultData(LVCSR_DATA_RESULT* pDataResult, long long nCount) { char* skip1 = ""; char* space = " "; int len = 0; + long long i; - for (long long i = 0; i < nCount; i++) { + for (i = 0; i < nCount; i++) { len += strlen(pDataResult[i].pTokenStr) + 1; } char* result = malloc(sizeof(char) * len); strcpy(result, ""); - for (long long i = 0; i < nCount; i++) { + for (i = 0; i < nCount; i++) { if (strcmp(pDataResult[i].pTokenStr,skip1) == 0) { } else { strcat(result, space);