From: Rasmus Lerdorf Date: Sun, 20 Oct 2013 16:36:50 +0000 (-0700) Subject: Clean up this weird safe_emalloc() call X-Git-Tag: php-5.5.6RC1~5^2~17^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f4a6d6e1b6c36259a5dc865d16f0dad76f2f2c9;p=php Clean up this weird safe_emalloc() call --- diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 4da8d602c9..b82017e21f 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -1675,7 +1675,7 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC) php_stream_rewind(tmpstream); - ret = safe_emalloc((lines + 1), sizeof(char*), size * sizeof(char*)); + ret = safe_emalloc((lines + 1), sizeof(char*), size); entry = ret; text = (char*) (ret + lines + 1);