{
FILE *fp = fopen("/proc/mounts", "r");
static char line[256];
- char *point = NULL;
if(!fp)
return NULL;
fclose(fp);
- return point;
+ return NULL;
}
/*
devname = tmp;
/* if device name matches */
- if (!strncmp(block, devname, len)) {
+ if (!strncmp(block, devname, len + 1)) {
if (root_only && fs_rootfs_only(fstype))
break;