---
plugins/floppy/floppy.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/plugins/floppy/floppy.c b/plugins/floppy/floppy.c
index 24850300..80f350af 100644
--- a/plugins/floppy/floppy.c
+++ b/plugins/floppy/floppy.c
@@ -72,6 +72,8 @@ floppy_unload (void)
static int
floppy_config (const char *key, const char *value)
{
+ int64_t r;
+
if (strcmp (key, "dir") == 0) {
if (dir != NULL) {
/* TODO: Support merging of multiple directories, like iso plugin. */
@@ -86,8 +88,10 @@ floppy_config (const char *key, const char *value)
label = value;
}
else if (strcmp (key, "size") == 0) {
- if (nbdkit_parse_uint64_t ("size", value, &size) == -1)
+ r = nbdkit_parse_size (value);
+ if (r == -1)
return -1;
+ size = r;
}
else {
nbdkit_error ("unknown parameter '%s'", key);
--
2.32.0