diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-05-13 01:57:54 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-05-13 01:57:54 +0000 |
commit | 56ba9b4ae51ef39eae376d0ca61c5dcea3eb016c (patch) | |
tree | 6dc095f92b7e44a4ed5801e37f0612aa3d005a2e | |
parent | fe47a383e33303f17d9a87976806e80d63de6e1c (diff) | |
download | php-git-56ba9b4ae51ef39eae376d0ca61c5dcea3eb016c.tar.gz |
emalloc -> safe_emalloc
-rw-r--r-- | main/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/network.c b/main/network.c index 61bbecb5e6..f0ad5e0ad7 100644 --- a/main/network.c +++ b/main/network.c @@ -203,7 +203,7 @@ static int php_network_getaddresses(const char *host, struct sockaddr ***sal, ch ; } - *sal = emalloc((n + 1) * sizeof(*sal)); + *sal = safe_emalloc((n + 1), sizeof(*sal), 0); sai = res; sap = *sal; do { |