Corrected compiler warning.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user