summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_sprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_sprintf.c b/src/nxt_sprintf.c
index 789d58f1..f2e2b414 100644
--- a/src/nxt_sprintf.c
+++ b/src/nxt_sprintf.c
@@ -380,13 +380,13 @@ nxt_vsprintf(u_char *buf, u_char *end, const char *fmt, va_list args)
if (nxt_slow_path(isnan(f))) {
p = (u_char *) nan;
- length = sizeof(nan) - 1;
+ length = nxt_length(nan);
goto copy;
} else if (nxt_slow_path(isinf(f))) {
p = (u_char *) infinity;
- length = sizeof(infinity) - 1;
+ length = nxt_length(infinity);
goto copy;
}