From 602e99e0c2f89e7214b4e1ac52215c6ae37ca5d2 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 11 May 2016 19:08:51 -0400 Subject: Another try to parse newlines correctly --- ws2a/bugcomment.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ws2a/bugcomment.c') 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; -- cgit v1.2.3-70-g09d2