DEVLEN
if (memcmp(part, "/dev/", DEVLEN) == 0) /* starts with /dev */
strncat(&partname[DEVLEN], part, MAXPATHLEN - DEVLEN);