]> git.ipfire.org Git - thirdparty/git.git/blobdiff - path.c
Merge branch 'bw/remote-rename-update-config'
[thirdparty/git.git] / path.c
diff --git a/path.c b/path.c
index a76eec8b968d81904928f83aca789757117cac0f..88cf59300738a2f10750ff458fa35b1211f00ab8 100644 (file)
--- a/path.c
+++ b/path.c
@@ -1077,6 +1077,8 @@ const char *remove_leading_path(const char *in, const char *prefix)
 
 /*
  * It is okay if dst == src, but they should not overlap otherwise.
+ * The "dst" buffer must be at least as long as "src"; normalizing may shrink
+ * the size of the path, but will never grow it.
  *
  * Performs the following normalizations on src, storing the result in dst:
  * - Ensures that components are separated by '/' (Windows only)