since the tr hack was removed in
deead97, the format string is no longer
70 chars. also removes unnecessary malloc casting.
static void archive_selection(const char *cmd, const char *archive, const char *curpath)
{
- /* The 70 comes from the string below */
- char *buf = (char *)malloc((70 + xstrlen(cmd) + xstrlen(archive)
- + xstrlen(curpath) + xstrlen(selpath)) * sizeof(char));
+ /* The 38 comes from the format string below */
+ char *buf = malloc((38 + xstrlen(cmd) + xstrlen(archive)
+ + xstrlen(curpath) + xstrlen(selpath)) * sizeof(char));
if (!buf) {
DPRINTF_S(strerror(errno));
printwarn(NULL);