mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-13 19:37:17 +00:00
trivial: Fix typo preventing FreeBSD compile
This commit is contained in:
parent
79bbcd792a
commit
560132b0d0
@ -35,7 +35,7 @@ fu_kenv_get_string (const gchar *key, GError **error)
|
||||
g_return_val_if_fail (key != NULL, NULL);
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
|
||||
|
||||
if (kenv (KENV_GET, key, buf, bufsz - 1) == -1) {
|
||||
if (kenv (KENV_GET, key, buf, sizeof(buf)) == -1) {
|
||||
g_set_error (error,
|
||||
FWUPD_ERROR,
|
||||
FWUPD_ERROR_READ,
|
||||
|
Loading…
Reference in New Issue
Block a user