From 841de8ae65523bb26fb7c3e39b2401ac38aac9a8 Mon Sep 17 00:00:00 2001 From: Christian Brueffer Date: Mon, 16 Nov 2009 08:26:56 +0000 Subject: [PATCH] MFC: r199046 Fix a copy+paste error by checking the correct variable against MM_NULLACT. --- lib/libc/gen/fmtmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/gen/fmtmsg.c b/lib/libc/gen/fmtmsg.c index 6caabbbb884..e6b1b960d64 100644 --- a/lib/libc/gen/fmtmsg.c +++ b/lib/libc/gen/fmtmsg.c @@ -128,7 +128,7 @@ printfmt(char *msgverb, long class, const char *label, int sev, size += strlen(sevname); if (text != MM_NULLTXT) size += strlen(text); - if (text != MM_NULLACT) + if (act != MM_NULLACT) size += strlen(act); if (tag != MM_NULLTAG) size += strlen(tag);