]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Fix floating point classification in printf.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Jun 2015 10:55:46 +0000 (11:55 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Jun 2015 10:55:46 +0000 (11:55 +0100)
src/libutil/printf.c

index e27bb9cdbc858f56110f855df4758ba2b36142f2..03b801041c11883b21dbd5acb0199b61df98b0b4 100644 (file)
@@ -578,7 +578,7 @@ rspamd_vprintf_common (rspamd_printf_append_func func,
                                        f = (gdouble) va_arg (args, long double);
                                }
 
-                               if (isnormal (f)) {
+                               if (isfinite (f)) {
                                        p = numbuf;
                                        last = p + sizeof (numbuf);
                                        if (f < 0) {