com php-src: Clean up this weird safe_emalloc() call: ext/ftp/ftp.c
| From: | Rasmus Lerdorf | Date: | Sun, 20 Oct 2013 16:36:50 +0000 |
| Subject: | com php-src: Clean up this weird safe_emalloc() call: ext/ftp/ftp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73745@lists.php.net to get a copy of this message | ||
Commit: 8f4a6d6e1b6c36259a5dc865d16f0dad76f2f2c9
Author: Rasmus Lerdorf <rasmus@lerdorf.com> Sun, 20 Oct 2013 09:36:50 -0700
Parents: 1494298231072d5991e76db5ef25f20e81018106
Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8f4a6d6e1b6c36259a5dc865d16f0dad76f2f2c9
Log:
Clean up this weird safe_emalloc() call
Changed paths:
M ext/ftp/ftp.c
Diff:
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index 4da8d60..b82017e 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);