Skip to content

Commit

Permalink
Valid xml tokens
Browse files Browse the repository at this point in the history
Signed-off-by: peach280 <[email protected]>
  • Loading branch information
peach280 committed Jan 10, 2025
1 parent 47d4727 commit f42ea50
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib_ccx/ccx_encoders_spupng.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ void spunpg_free(struct spupng_t *sp)
}
void sanitize_and_write_comment(FILE *fpxml, const char *input_file)
{
char sanitized_file[300];
int j = 0;

for (int i = 0; input_file[i] != '\0' && j < sizeof(sanitized_file) - 1; i++) {
if (input_file[i] == '-') {
char sanitized_file[300];
int j = 0;
for (int i = 0; input_file[i] != '\0' && j < sizeof(sanitized_file) - 1; i++)
{
if (input_file[i] == '-')
{
if (input_file[i + 1] == '-')
{
sanitized_file[j++] = ' ';
Expand Down

0 comments on commit f42ea50

Please sign in to comment.