Loading lib/writeout.c +3 −0 Original line number Diff line number Diff line Loading @@ -93,9 +93,11 @@ void WriteOut(struct UrlData *data) else { /* this is meant as a variable to output */ char *end; char keepit; int i; if(('{' == ptr[1]) && (end=strchr(ptr, '}'))) { ptr+=2; /* pass the % and the { */ keepit=*end; *end=0; /* zero terminate */ for(i=0; replacements[i].name; i++) { if(strequal(ptr, replacements[i].name)) { Loading Loading @@ -138,6 +140,7 @@ void WriteOut(struct UrlData *data) } } ptr=end+1; /* pass the end */ *end = keepit; } else { /* illegal syntax, then just output the characters that are used */ Loading Loading
lib/writeout.c +3 −0 Original line number Diff line number Diff line Loading @@ -93,9 +93,11 @@ void WriteOut(struct UrlData *data) else { /* this is meant as a variable to output */ char *end; char keepit; int i; if(('{' == ptr[1]) && (end=strchr(ptr, '}'))) { ptr+=2; /* pass the % and the { */ keepit=*end; *end=0; /* zero terminate */ for(i=0; replacements[i].name; i++) { if(strequal(ptr, replacements[i].name)) { Loading Loading @@ -138,6 +140,7 @@ void WriteOut(struct UrlData *data) } } ptr=end+1; /* pass the end */ *end = keepit; } else { /* illegal syntax, then just output the characters that are used */ Loading