diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-08-12 00:58:52 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-08-12 00:58:52 +0000 |
commit | 93bcd55eafbcf2a49e8963c3475d5a7b1fbc8c53 (patch) | |
tree | 981e9591cd93532e591400b35b595735a6eee0b7 /main/network.c | |
parent | 3652ab6032819e4854ae607fe8084cd129791983 (diff) | |
download | php-git-93bcd55eafbcf2a49e8963c3475d5a7b1fbc8c53.tar.gz |
emalloc -> safe_emalloc
Diffstat (limited to 'main/network.c')
-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 211107bad3..93520d2672 100644 --- a/main/network.c +++ b/main/network.c @@ -240,7 +240,7 @@ static int php_network_getaddresses(const char *host, int socktype, struct socka in = *((struct in_addr *) host_info->h_addr); } - *sal = emalloc(2 * sizeof(*sal)); + *sal = safe_emalloc(2, sizeof(*sal), 0); sap = *sal; *sap = emalloc(sizeof(struct sockaddr_in)); (*sap)->sa_family = AF_INET; |