projects
/
platform
/
upstream
/
syncevolution.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 1.1.0.99.1
[platform/upstream/syncevolution.git]
/
src
/
syncevo
/
util.cpp
diff --git
a/src/syncevo/util.cpp
b/src/syncevo/util.cpp
index
b4dfd18
..
174c382
100644
(file)
--- a/
src/syncevo/util.cpp
+++ b/
src/syncevo/util.cpp
@@
-117,9
+117,10
@@
void splitPath(const string &path, string &dir, string &file)
bool relToAbs(string &path)
{
- char
buffer[PATH_MAX+1]
;
- if (
realpath(path.c_str(), buffer)
) {
+ char
*buffer
;
+ if (
(buffer = realpath(path.c_str(), NULL)) != NULL
) {
path = buffer;
+ free(buffer);
return true;
} else {
return false;