]> granicus.if.org Git - php/commitdiff
Clean up this weird safe_emalloc() call
authorRasmus Lerdorf <rasmus@lerdorf.com>
Sun, 20 Oct 2013 16:36:50 +0000 (09:36 -0700)
committerRasmus Lerdorf <rasmus@lerdorf.com>
Sun, 20 Oct 2013 16:36:50 +0000 (09:36 -0700)
ext/ftp/ftp.c

index 4da8d602c90834cffde32d375c402b05c58d9a06..b82017e21f2a726e3416f06010ca6efc648d9642 100644 (file)
@@ -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);