Skip to content

Commit 8f4a6d6

Browse files
committed
Clean up this weird safe_emalloc() call
1 parent 1494298 commit 8f4a6d6

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
@@ -1675,7 +1675,7 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC)
16751675

16761676
php_stream_rewind(tmpstream);
16771677

1678-
ret = safe_emalloc((lines + 1), sizeof(char*), size * sizeof(char*));
1678+
ret = safe_emalloc((lines + 1), sizeof(char*), size);
16791679

16801680
entry = ret;
16811681
text = (char*) (ret + lines + 1);

0 commit comments

Comments
 (0)