commit 64929039e99bebc1c0109be31751f69cafc8536f
parent 007df69fc5987f30ef9494ccbbb87aa058d6b732
Author: FRIGN <dev@frign.de>
Date: Wed, 30 Sep 2015 01:26:27 +0200
Don't forget to scale in parseoffset()
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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;
}