summaryrefslogtreecommitdiff
path: root/sysutils/lastfss/patches/patch-lastfss.c
blob: 37e0f0f032e2d2189e1219c82aa14c7b9ce8d844 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-lastfss.c,v 1.1 2015/03/18 15:04:17 joerg Exp $

--- lastfss.c.orig	2015-03-17 22:25:25.000000000 +0000
+++ lastfss.c
@@ -54,8 +54,8 @@ char atexit_msg[MAXPATHLEN] = { 0 };
 void
 atexit_func(void)
 {
-	if (*atexit_msg != '\0');
-		syslog(LOG_INFO, atexit_msg);
+	if (*atexit_msg != '\0')
+		syslog(LOG_INFO, "%s", atexit_msg);
 	return;
 }