summaryrefslogtreecommitdiffstats
path: root/server/mpm/winnt
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2011-04-06 22:59:47 +0200
committerJeff Trawick <trawick@apache.org>2011-04-06 22:59:47 +0200
commit406c2fb5cc6a6734ddd3ce8e730a192ea9c2adfe (patch)
tree37d1b38580f33605545380581badc5a3c2725ca2 /server/mpm/winnt
parentLog the OS socket (int) instead of the apr_socket_t *. (diff)
downloadapache2-406c2fb5cc6a6734ddd3ce8e730a192ea9c2adfe.tar.xz
apache2-406c2fb5cc6a6734ddd3ce8e730a192ea9c2adfe.zip
can't format time_t with %d; cast this small interval time to int
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1089624 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--server/mpm/winnt/service.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/mpm/winnt/service.c b/server/mpm/winnt/service.c
index fb5704aa4e..e8311bf22b 100644
--- a/server/mpm/winnt/service.c
+++ b/server/mpm/winnt/service.c
@@ -149,7 +149,8 @@ void hold_console_open_on_error(void)
return;
}
remains = ((start + 30) - time(NULL));
- sprintf (count, "%d...", remains);
+ sprintf(count, "%d...",
+ (int)remains); /* 30 or less, so can't overflow int */
if (!SetConsoleCursorPosition(hConErr, coninfo.dwCursorPosition))
return;
if (!WriteConsole(hConErr, count, (DWORD)strlen(count), &result, NULL)