diff options
author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2012-03-04 19:30:01 +0000 |
---|---|---|
committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2012-03-04 19:30:01 +0000 |
commit | 02592974b4caa47364bbedf8760feb50cbfa9a81 (patch) | |
tree | d27e645ee3f0bfd414fc7e1282daeca328231853 | |
parent | d85cc4a1a163fdffd96e9211f3f6ae0045a682de (diff) | |
download | php-git-02592974b4caa47364bbedf8760feb50cbfa9a81.tar.gz |
- size_t may be shorter than long and definitely is not signed. Note that the
z modifier was only added in C99, so we can't use it.
-rw-r--r-- | main/streams/xp_socket.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/streams/xp_socket.c b/main/streams/xp_socket.c index 8d1c423da7..64555ca1df 100644 --- a/main/streams/xp_socket.c +++ b/main/streams/xp_socket.c @@ -514,7 +514,9 @@ static inline int parse_unix_address(php_stream_xport_param *xparam, struct sock * BUT, to get into this branch of code, the name is too long, * so we don't care. */ xparam->inputs.namelen = sizeof(unix_addr->sun_path) - 1; - php_error_docref(NULL TSRMLS_CC, E_NOTICE, "socket path exceeded the maximum allowed length of %ld bytes and was truncated", sizeof(unix_addr->sun_path)); + php_error_docref(NULL TSRMLS_CC, E_NOTICE, + "socket path exceeded the maximum allowed length of %lu bytes " + "and was truncated", (unsigned long)sizeof(unix_addr->sun_path)); } memcpy(unix_addr->sun_path, xparam->inputs.name, xparam->inputs.namelen); |