aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/lib.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@xensource.com>2007-01-05 18:17:36 +0000
committerIan Campbell <ian.campbell@xensource.com>2007-01-05 18:17:36 +0000
commit4d5aa6c3452e14976347c6b821756120a3f37d61 (patch)
tree97ba8f93a5301642c994ee211e40f2a3b9e2e1ac /xen/common/lib.c
parentb4270971d58c86f81ff6595c427116bdc258180a (diff)
downloadxen-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.c2
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 */