char *tmpdirname = filename + 1;
filename = mallocstrcpy(NULL, tmpdirname);
- *tmpdirname = '\0';
+ tmpdirname[0] = '\0';
tmpdirname = dirname;
dirname = real_dir_from_tilde(dirname);
free(tmpdirname);
*lastwastab = FALSE;
buf = charealloc(buf, common_len + buflen - *place + 1);
- charmove(buf + common_len, buf + *place, buflen - *place + 1);
+ charmove(buf + common_len, buf + *place,
+ buflen - *place + 1);
charcpy(buf, mzero, common_len);
*place = common_len;
} else if (*lastwastab == FALSE || num_matches < 2)