Skip to content

Commit

Permalink
[ufowrite.c] Fix: setVersionMajor should write "0" to dst when th…
Browse files Browse the repository at this point in the history
…e major version is zero
  • Loading branch information
tamcy authored Dec 5, 2024
1 parent 341c4fd commit a36fc9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions c/shared/source/ufowrite/ufowrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,8 @@ static void setVersionMajor(char *dst, char *version) {
seenNonZero = 1;
}
}
if (!seenNonZero)
*dst++ = '0';
*dst = 0x00;
}

Expand Down

0 comments on commit a36fc9e

Please sign in to comment.