commit ac4222e92986e772632fed2565bd4e7f00394373
parent a1e6588085e28a8f79ed8deb6e7dc61ebfd81be4
Author: Joris Vink <joris@coders.se>
Date: Mon, 24 Nov 2014 10:39:38 +0100
Proper use of kore_strtonum64().
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/video_stream/src/stream.c b/examples/video_stream/src/stream.c
@@ -113,7 +113,7 @@ video_stream(struct http_request *req)
}
if (n >= 1) {
- start = kore_strtonum64(range[0], 10, &err);
+ start = kore_strtonum64(range[0], 1, &err);
if (err != KORE_RESULT_OK) {
v->ref--;
http_response(req, 416, NULL, 0);
@@ -122,7 +122,7 @@ video_stream(struct http_request *req)
}
if (n > 1) {
- end = kore_strtonum64(range[1], 10, &err);
+ end = kore_strtonum64(range[1], 1, &err);
if (err != KORE_RESULT_OK) {
v->ref--;
http_response(req, 416, NULL, 0);