diff options
author | reyk <reyk@openbsd.org> | 2005-07-30 17:16:09 +0000 |
---|---|---|
committer | reyk <reyk@openbsd.org> | 2005-07-30 17:16:09 +0000 |
commit | 0ceae6b8f6f34fe8fb71d5b1c0e81107c9babc73 (patch) | |
tree | 444a72c95d8a3399b89cd6fdf9bf082874aee644 /usr.sbin/hostapd/hostapd.c | |
parent | remove a useless timeout after tx (decrease nasty delays while (diff) | |
download | wireguard-openbsd-0ceae6b8f6f34fe8fb71d5b1c0e81107c9babc73.tar.xz wireguard-openbsd-0ceae6b8f6f34fe8fb71d5b1c0e81107c9babc73.zip |
flush print buffer on empty newlines
Diffstat (limited to 'usr.sbin/hostapd/hostapd.c')
-rw-r--r-- | usr.sbin/hostapd/hostapd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/hostapd/hostapd.c b/usr.sbin/hostapd/hostapd.c index 53c77b844b0..1785537bbbb 100644 --- a/usr.sbin/hostapd/hostapd.c +++ b/usr.sbin/hostapd/hostapd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hostapd.c,v 1.15 2005/07/04 18:48:05 deraadt Exp $ */ +/* $OpenBSD: hostapd.c,v 1.16 2005/07/30 17:16:09 reyk Exp $ */ /* * Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net> @@ -105,6 +105,9 @@ hostapd_printf(const char *fmt, ...) if (vsnprintf(printbuf, sizeof(printbuf), newfmt, ap) == -1) goto flush; va_end(ap); + + if (fmt[0] == '\n') + goto flush; } void |