takes into account the offset used in realpath(). see bug #2895. Thanks kaliber!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28252 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2008-10-20 21:41:30 +00:00
parent ff1beff8d1
commit 4dafc175e9
+1 -1
View File
@@ -314,7 +314,7 @@ main(int argc, char *argv[])
// Generate UUID for the image by hashing its full path
uint64 uuid1 = 0, uuid2 = 0, uuid3 = 0, uuid4 = 0, uuid5 = 0;
if (uuid == NULL) {
char fullPath[PATH_MAX + 1];
char fullPath[PATH_MAX + 6];
strcpy(fullPath, "Haiku");
if (realpath(file, fullPath + 5) == NULL)