Don't forget to scale in parseoffset()

This commit is contained in:
FRIGN 2015-09-30 01:26:27 +02:00 committed by sin
parent 007df69fc5
commit 64929039e9

View File

@ -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;
}