summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/sockets/sockets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index 04f1b36f16..4aeaeecf9d 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -322,7 +322,7 @@ static char *php_strerror(int error TSRMLS_DC)
buf = hstrerror(error);
#else
{
- spprintf(&(SOCKETS_G(strerror_buf), "Host lookup error %d", error);
+ spprintf(&(SOCKETS_G(strerror_buf)), "Host lookup error %d", error);
buf = SOCKETS_G(strerror_buf);
}
#endif