##// END OF EJS Templates
pathencode: fix hashmangle short dir limit (issue3958)...
Siddharth Agarwal -
r19317:66da6e9f stable
parent child Browse files
Show More
@@ -585,7 +585,8 static PyObject *hashmangle(const char *
585 in a space or dot, which are unportable. */
585 in a space or dot, which are unportable. */
586 if (d == '.' || d == ' ')
586 if (d == '.' || d == ' ')
587 dest[destlen - 1] = '_';
587 dest[destlen - 1] = '_';
588 if (destlen > maxshortdirslen)
588 /* The + 3 is to account for "dh/" in the beginning */
589 if (destlen > maxshortdirslen + 3)
589 break;
590 break;
590 charcopy(dest, &destlen, destsize, src[i]);
591 charcopy(dest, &destlen, destsize, src[i]);
591 p = -1;
592 p = -1;
General Comments 0
You need to be logged in to leave comments. Login now