diff options
author | 2006-10-24 19:45:06 +0000 | |
---|---|---|
committer | 2006-10-24 19:45:06 +0000 | |
commit | 746a1e0e3a8712247a677f6d643371ff5b27b9ce (patch) | |
tree | 0e6de01dd5de8a13cc90412f2d396e31a36964cb /sys | |
parent | Ignore NUL lines returned by fgets(3), so we don't (diff) | |
download | wireguard-openbsd-746a1e0e3a8712247a677f6d643371ff5b27b9ce.tar.xz wireguard-openbsd-746a1e0e3a8712247a677f6d643371ff5b27b9ce.zip |
Work around PR 5268 by printing "bad string" instead of panicing. There is
no meanigful way of calling aml_die so we need to isolate these machines
instead.
ok jordan
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpi/amltypes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/amltypes.h b/sys/dev/acpi/amltypes.h index 3ea16b773f0..6f36a2844f1 100644 --- a/sys/dev/acpi/amltypes.h +++ b/sys/dev/acpi/amltypes.h @@ -1,4 +1,4 @@ -/* $OpenBSD: amltypes.h,v 1.18 2006/10/19 07:02:20 jordan Exp $ */ +/* $OpenBSD: amltypes.h,v 1.19 2006/10/24 19:45:06 marco Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> * @@ -299,7 +299,7 @@ struct aml_value #define xaml_intval(v) ((v)->v_integer) #define aml_strlen(v) ((v)->length) -#define aml_strval(v) ((v)->v_string) +#define aml_strval(v) ((v)->v_string ? (v)->v_string : "bad string") #define aml_buflen(v) ((v)->length) #define aml_bufval(v) ((v)->v_buffer) #define aml_pkglen(v) ((v)->length) |