Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes: > +char *get_relative_cwd(char *buffer, int size, const char *dir) > +{ > + char *cwd = buffer; > + > + if (!dir) > + return 0; > + > + if (!getcwd(buffer, PATH_MAX)) > + return 0; Can size be less than PATH_MAX? - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html