diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-11 19:08:51 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-11 19:08:51 -0400 |
| commit | 602e99e0c2f89e7214b4e1ac52215c6ae37ca5d2 (patch) | |
| tree | 2d299b6df7a494a01e027ea1680dd0fc3e5fcaeb /ws2a/bugcomment.c | |
| parent | 45c92ad49092c2a73c6400334434989bae2b666d (diff) | |
| download | webpage-602e99e0c2f89e7214b4e1ac52215c6ae37ca5d2.tar.gz webpage-602e99e0c2f89e7214b4e1ac52215c6ae37ca5d2.tar.bz2 webpage-602e99e0c2f89e7214b4e1ac52215c6ae37ca5d2.zip | |
Another try to parse newlines correctly
Diffstat (limited to 'ws2a/bugcomment.c')
| -rw-r--r-- | ws2a/bugcomment.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ws2a/bugcomment.c b/ws2a/bugcomment.c index 193495a..c15e6ab 100644 --- a/ws2a/bugcomment.c +++ b/ws2a/bugcomment.c @@ -21,9 +21,9 @@ char* replaceHTML(char* str){ nstrp++; }else if(str[strp] == '%'){ //printf("Hit encodeing!\n"); - int hex; - sscanf(str+strp,"%%%x",&hex); - //printf("Was:%c\n",(char)hex); + int hex = 0; + sscanf(str+strp,"%%%2x",&hex); + //printf("Was:%c(%d)\n",(char)hex,hex); if(hex == 0x0D){ strp+=3; continue; |
