shared: assert the source for memcpy

This commit is contained in:
Thomas Hindoe Paaboel Andersen 2017-04-28 23:37:35 +02:00
parent 232bd67797
commit b3c908b4a2

View file

@ -269,6 +269,7 @@ int efi_set_variable(
_cleanup_close_ int fd = -1;
assert(name);
assert(value);
if (asprintf(&p,
"/sys/firmware/efi/efivars/%s-%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",