From 64929039e99bebc1c0109be31751f69cafc8536f Mon Sep 17 00:00:00 2001 From: FRIGN Date: Wed, 30 Sep 2015 01:26:27 +0200 Subject: [PATCH] Don't forget to scale in parseoffset() --- libutil/parseoffset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libutil/parseoffset.c b/libutil/parseoffset.c index 451d913..9ce0411 100644 --- a/libutil/parseoffset.c +++ b/libutil/parseoffset.c @@ -10,7 +10,7 @@ off_t parseoffset(const char *str) { off_t res; - size_t scale; + size_t scale = 1; int base = 10; char *end; @@ -55,5 +55,5 @@ parseoffset(const char *str) return -1; } - return res; + return res * scale; }