libpayload: code cosmetics
[coreboot.git] / payloads / libpayload / drivers / options.c
index 8161c22e12898cf151861fa20815beacb3e708f3..7c762516f52e341045c753b3a65353be83c13784 100644 (file)
@@ -309,7 +309,7 @@ int set_option_from_string(const struct nvram_accessor *nvram, struct cb_cmos_op
        switch (cmos_entry->config) {
                case 'h':
                        /* only works on little endian */
-                       raw = malloc(8);
+                       raw = malloc(sizeof(u64));
                        *(u64*)raw = strtoull(value, NULL, 0);
                        break;
                case 's':