Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / apps / JAWS2 / HTTP_10.cpp
blob632fbfc7d08b52b4972ef2a0c321e4ef344e37c4
1 #include "HTTP_10.h"
3 #include "JAWS/JAWS.h"
6 char *
7 JAWS_HTTP_10_Helper::HTTP_decode_string (char *path)
9 // replace the percentcodes with the actual character
10 int i, j;
11 char percentcode[3];
13 for (i = j = 0; path[i] != '\0'; i++, j++)
15 if (path[i] == '%')
17 percentcode[0] = path[++i];
18 percentcode[1] = path[++i];
19 percentcode[2] = '\0';
20 path[j] = (char) ACE_OS::strtol (percentcode, (char **) 0, 16);
22 else
23 path[j] = path[i];
26 path[j] = path[i];
28 return path;