Hi, On Fri, 27 Jul 2007, Junio C Hamano wrote: > 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? Thanks. Will fix. Ciao, Dscho - 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