]> granicus.if.org Git - php/commitdiff
MFH: Fix format specifiers
authorSara Golemon <pollita@php.net>
Wed, 11 Aug 2004 04:31:03 +0000 (04:31 +0000)
committerSara Golemon <pollita@php.net>
Wed, 11 Aug 2004 04:31:03 +0000 (04:31 +0000)
main/rfc1867.c

index 35abcb52b880499677a7fdf2ea78ccb075a7eca6..1c2adef9a616dec0c41af8fb5b6cd17f7ab54c0f 100644 (file)
@@ -781,7 +781,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler)
        zend_llist header;
 
        if (SG(request_info).content_length > SG(post_max_size)) {
-               sapi_module.sapi_error(E_WARNING, "POST Content-Length of %d bytes exceeds the limit of %d bytes", SG(request_info).content_length, SG(post_max_size));
+               sapi_module.sapi_error(E_WARNING, "POST Content-Length of %ld bytes exceeds the limit of %ld bytes", SG(request_info).content_length, SG(post_max_size));
                return;
        }
 
@@ -969,7 +969,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler)
                                        wlen = fwrite(buff, 1, blen, fp);
                        
                                        if (wlen < blen) {
-                                               sapi_module.sapi_error(E_WARNING, "Only %d bytes were written, expected to write %ld", wlen, blen);
+                                               sapi_module.sapi_error(E_WARNING, "Only %d bytes were written, expected to write %d", wlen, blen);
                                                cancel_upload = UPLOAD_ERROR_C;
                                        } else {
                                                total_bytes += wlen;