Corrected compiler warning.

This commit is contained in:
skarg
2009-11-10 03:14:05 +00:00
parent edc7c6c577
commit 7ba1625924
+1 -1
View File
@@ -102,7 +102,7 @@ void DecodeBlock(
return;
iLen += decode_character_string(&pData[iLen], len_value_type, &bsName);
strncpy(Response.sMyString, characterstring_value(&bsName), MY_MAX_STR);
strncpy((char *)Response.sMyString, characterstring_value(&bsName), MY_MAX_STR);
Response.sMyString[MY_MAX_STR] = '\0'; /* Make sure it is nul terminated */
printf("Private Transfer Read Block Response\n");