summaryrefslogtreecommitdiff
path: root/request.h
diff options
context:
space:
mode:
Diffstat (limited to 'request.h')
-rw-r--r--request.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/request.h b/request.h
index b8edc81..136f202 100644
--- a/request.h
+++ b/request.h
@@ -29,7 +29,7 @@ inline void request(size_t (*writefunction)(void *, size_t, size_t, void *)
sval = va_arg(ap, char *);
length += strlen(sval) - 2;
break;
- case 'd':
+ case 'u':
ival = va_arg(ap, unsigned int);
do {
length++;
@@ -54,9 +54,9 @@ inline void request(size_t (*writefunction)(void *, size_t, size_t, void *)
sval = va_arg(ap, char *);
strcat(url, sval);
break;
- case 'd':
+ case 'u':
ival = va_arg(ap, unsigned int);
- sprintf(url, "%s%d", url, ival);
+ sprintf(url, "%s%u", url, ival);
break;
default:
break;