Skip to content

Commit 288a4ec

Browse files
committed
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: Clean up this weird safe_emalloc() call
2 parents c5e5a6c + 8f4a6d6 commit 288a4ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ftp/ftp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC)
16701670

16711671
php_stream_rewind(tmpstream);
16721672

1673-
ret = safe_emalloc((lines + 1), sizeof(char*), size * sizeof(char*));
1673+
ret = safe_emalloc((lines + 1), sizeof(char*), size);
16741674

16751675
entry = ret;
16761676
text = (char*) (ret + lines + 1);

0 commit comments

Comments
 (0)