summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 218bf69)
raw | patch | inline | side by side (parent: 218bf69)
author | Johannes Sixt <johannes.sixt@telecom.at> | |
Sun, 8 Jun 2008 14:34:40 +0000 (16:34 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 8 Jun 2008 17:48:01 +0000 (10:48 -0700) |
This helps porting to Windows.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
path.c | patch | blob | history |
index 4945f2abc50be08aa5e0cc2f9be562c74c47b9d7..7a35a26a1697480f0f43244132d8267deb301651 100644 (file)
--- a/path.c
+++ b/path.c
{
static char buf[PATH_MAX + 1];
- if (path[0] == '/') {
+ if (is_absolute_path(path)) {
if (strlcpy(buf, path, PATH_MAX) >= PATH_MAX)
die ("Too long path: %.*s", 60, path);
} else {