summaryrefslogtreecommitdiff
path: root/request.h
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-30 10:51:34 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-30 10:51:34 +0800
commit7180c051d619f0605f2c45929eb516d28bcb709f (patch)
tree243219ac46264f10720dfa6fc22f2304f321f353 /request.h
parent739bcbbd83115cb8cf3f5b60fd7e73056a0c7293 (diff)
The decimal notations used so far are unsigned integers
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;