From a98bdbf9b4d615a69c354b67025bd5a7c1dafc7b Mon Sep 17 00:00:00 2001 From: JungJun Date: Fri, 24 Jun 2022 17:21:26 +0900 Subject: [PATCH] =?UTF-8?q?sttselvas=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stt/sttselvas.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);