Lin Li wrote: > + if (strlen(path) > PATH_MAX) { > + printf("Mount point string too long\n"); > + return NULL; > + } > + > + if (path == NULL) > + return NULL; Shouldn't path be checked for NULL before calling stlrlen(path)?