Skip to content

Commit

Permalink
Merge pull request #774 from xuzhenbao/bugfix_dfi
Browse files Browse the repository at this point in the history
Resolve parsing descriptor file error when char data is unsigned
  • Loading branch information
xuzhenbao authored Oct 14, 2024
2 parents bba867a + 518cce5 commit 032438f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/dfi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if (CELIX_DFI)
target_link_libraries(dfi PUBLIC jansson::jansson Celix::utils)##The public header file(dyn_interface.h) Celix::utils(celix_version.h)
set_target_properties(dfi PROPERTIES
C_VISIBILITY_PRESET hidden
VERSION "1.3.0"
VERSION "1.3.1"
"SOVERSION" 1
OUTPUT_NAME "celix_dfi")

Expand Down
4 changes: 2 additions & 2 deletions libs/dfi/src/dyn_descriptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ int celix_dynDescriptor_parse(celix_descriptor_t* descriptor, FILE* stream,
int (*parseSection)(celix_descriptor_t* descriptor, const char* secName, FILE *stream)) {
int status = OK;

char peek = (char)fgetc(stream);
int peek = fgetc(stream);
while (peek == ':') {
ungetc(peek, stream);
if ((status = celix_dynDescriptor_parseSection(descriptor, stream, parseSection)) != OK) {
return status;
}
peek = (char)fgetc(stream);
peek = fgetc(stream);
}

if (peek != EOF) {
Expand Down

0 comments on commit 032438f

Please sign in to comment.