summaryrefslogtreecommitdiff
path: root/src/auditor/taler-auditor-httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditor/taler-auditor-httpd.c')
-rw-r--r--src/auditor/taler-auditor-httpd.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c
index 6cdd5b861..60b04c6dc 100644
--- a/src/auditor/taler-auditor-httpd.c
+++ b/src/auditor/taler-auditor-httpd.c
@@ -266,7 +266,7 @@ handle_mhd_request (void *cls,
// arguments, and the url itself, and a terminator that is always null
const char *args[argsnr + 1];
- memset(&args,0,sizeof (args));
+ memset (&args,0,sizeof (args));
size_t ulen = strlen (url) + 1;
char d[ulen];
@@ -277,21 +277,24 @@ handle_mhd_request (void *cls,
url,
ulen);
- args[i++] = strtok_r(d, "/", &sp);
+ args[i++] = strtok_r (d, "/", &sp);
while ( (NULL != args[i - 1]) && (i < argsnr) )
- args[i++] = strtok_r(NULL, "/", &sp);
+ {
+ args[i++] = strtok_r (NULL, "/", &sp);
+ }
+
printf ("args: %s, %s, %s\n", args[0], args[1], args[2]);
// max length url could be
- char argurl[strlen(url) + 2];
- strcpy(argurl,"/");
+ char argurl[strlen (url) + 2];
+ strcpy (argurl,"/");
if (args[0] != NULL)
- strcat(argurl,args[0]);
+ strcat (argurl,args[0]);
- printf ("reconstructed link: %s\n", argurl);
+ printf ("reconstructed link: %s\n", argurl);
if ( (0 == strcasecmp (argurl,
rh->url)) &&