Skip to content

Commit

Permalink
Add an extra byte for the terminating null byte to the value buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
PengZheng authored Nov 18, 2023
1 parent d1206d9 commit 038808e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/utils/src/properties.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static void celix_properties_freeString(celix_properties_t* properties, char* st
static celix_status_t celix_properties_fillEntry(celix_properties_t* properties,
celix_properties_entry_t* entry,
const celix_properties_entry_t* prototype) {
char convertedValueBuffer[20];
char convertedValueBuffer[21];
if (prototype->valueType == CELIX_PROPERTIES_VALUE_TYPE_VERSION) {
entry->valueType = CELIX_PROPERTIES_VALUE_TYPE_VERSION;
entry->typed.versionValue = prototype->typed.versionValue;
Expand Down

0 comments on commit 038808e

Please sign in to comment.