Corrected CharacterString encoding, and added unit test for character string in

BACapp.c.
This commit is contained in:
skarg
2006-01-04 20:33:49 +00:00
parent 00b86b9219
commit d82c2c382d
2 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -888,7 +888,7 @@ int encode_bacnet_character_string(uint8_t * apdu,
len = characterstring_length(char_string);
apdu[0] = characterstring_encoding(char_string);
memmove(apdu, characterstring_value(char_string), len);
memmove(&apdu[1], characterstring_value(char_string), len);
return len + 1 /* for encoding */;
}