summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2011-03-23 16:09:19 +0000
committermarco <marco@openbsd.org>2011-03-23 16:09:19 +0000
commit2de2bedbf4b0da95873e176c1e1e632e289dbea8 (patch)
treedae295c9d18ccc4b3ac1e26d6f9fb5efd1b80526
parentonly read from the UART if there is something to read. fix beagle, otherwise (diff)
downloadwireguard-openbsd-2de2bedbf4b0da95873e176c1e1e632e289dbea8.tar.xz
wireguard-openbsd-2de2bedbf4b0da95873e176c1e1e632e289dbea8.zip
renegade tabs, no binary change
-rw-r--r--sys/dev/firmload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/firmload.c b/sys/dev/firmload.c
index 3304b3d8bea..4c150f368ce 100644
--- a/sys/dev/firmload.c
+++ b/sys/dev/firmload.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: firmload.c,v 1.9 2008/03/08 19:15:26 espie Exp $ */
+/* $OpenBSD: firmload.c,v 1.10 2011/03/23 16:09:19 marco Exp $ */
/*
* Copyright (c) 2004 Theo de Raadt <deraadt@openbsd.org>
@@ -45,7 +45,7 @@ loadfirmware(const char *name, u_char **bufp, size_t *buflen)
path = malloc(MAXPATHLEN, M_TEMP, M_NOWAIT);
if (path == NULL)
return (ENOMEM);
-
+
if (snprintf(path, MAXPATHLEN, "/etc/firmware/%s", name) >=
MAXPATHLEN) {
error = ENAMETOOLONG;