Format string bug
Jan Kasiak
nginx-devel at cybojanek.net
Thu Jun 10 15:07:39 UTC 2021
I think there is a bug in one of the format strings.
diff --git a/src/os/win32/ngx_win32_init.c b/src/os/win32/ngx_win32_init.c
index 3249fb29..11941f62 100644
--- a/src/os/win32/ngx_win32_init.c
+++ b/src/os/win32/ngx_win32_init.c
@@ -305,7 +305,7 @@ ngx_os_status(ngx_log_t *log)
/* Win9x build */
ngx_log_error(NGX_LOG_INFO, log, 0,
- "OS: %u build:%ud.%ud.%ud, \"%s\"",
+ "OS: %ud build:%ud.%ud.%ud, \"%s\"",
ngx_win32_version,
osvi.dwBuildNumber >> 24,
(osvi.dwBuildNumber >> 16) & 0xff,
More information about the nginx-devel
mailing list