Ticket #1779: printf_format.patch

File printf_format.patch, 742 bytes (added by ettl.martin, 4 years ago)

proposed patch

  • ffserver.c

    diff --git a/ffserver.c b/ffserver.c
    index 480e6fc..e7ce40f 100644
    a b static void http_send_too_busy_reply(int fd) 
    772772                       "\r\n" 
    773773                       "<html><head><title>Too busy</title></head><body>\r\n" 
    774774                       "<p>The server is too busy to serve your request at this time.</p>\r\n" 
    775                        "<p>The number of current connections is %d, and this exceeds the limit of %d.</p>\r\n" 
     775                       "<p>The number of current connections is %u, and this exceeds the limit of %u.</p>\r\n" 
    776776                       "</body></html>\r\n", 
    777777                       nb_connections, nb_max_connections); 
    778778    av_assert0(len < sizeof(buffer));