diff options
author | Ian Campbell <ian.campbell@xensource.com> | 2007-01-05 18:17:36 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@xensource.com> | 2007-01-05 18:17:36 +0000 |
commit | 4d5aa6c3452e14976347c6b821756120a3f37d61 (patch) | |
tree | 97ba8f93a5301642c994ee211e40f2a3b9e2e1ac /xen/common/lib.c | |
parent | b4270971d58c86f81ff6595c427116bdc258180a (diff) | |
download | xen-4d5aa6c3452e14976347c6b821756120a3f37d61.tar.gz xen-4d5aa6c3452e14976347c6b821756120a3f37d61.tar.bz2 xen-4d5aa6c3452e14976347c6b821756120a3f37d61.zip |
[XEN] Skip over the unit in parse_size_and_unit() when returning the remainder
of the string.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Diffstat (limited to 'xen/common/lib.c')
-rw-r--r-- | xen/common/lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/lib.c b/xen/common/lib.c index c8a90b99a7..661f76420d 100644 --- a/xen/common/lib.c +++ b/xen/common/lib.c @@ -454,7 +454,7 @@ unsigned long long parse_size_and_unit(const char *s, const char **ps) case 'K': case 'k': ret <<= 10; case 'B': case 'b': - s++; + s1++; break; default: ret <<= 10; /* default to kB */ |