Submitter | Siddharth Agarwal |
---|---|
Date | June 20, 2013, 3:18 p.m. |
Message ID | <149f9a739bbecea91c11.1371741492@dev1091.prn1.facebook.com> |
Download | mbox | patch |
Permalink | /patch/1742/ |
State | Superseded, archived |
Headers | show |
Comments
Patch
diff --git a/mercurial/pathencode.c b/mercurial/pathencode.c --- a/mercurial/pathencode.c +++ b/mercurial/pathencode.c @@ -585,7 +585,8 @@ in a space or dot, which are unportable. */ if (d == '.' || d == ' ') dest[destlen - 1] = '_'; - if (destlen > maxshortdirslen) + /* The + 3 is to account for "dh/" in the beginning */ + if (destlen > maxshortdirslen + 3) break; charcopy(dest, &destlen, destsize, src[i]); p = -1;