projects
/
platform
/
core
/
system
/
swap-probe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
453e9bf
)
[FIX] Absolute filenames
author
Dmitry Bogatov
<d.bogatov@samsung.com>
Fri, 8 Nov 2013 09:04:06 +0000
(13:04 +0400)
committer
Dmitry Bogatov
<d.bogatov@samsung.com>
Fri, 8 Nov 2013 09:04:06 +0000
(13:04 +0400)
Change-Id: Ib3fb05ea833e02fbd3a49f7c89f9b0b88b1e3d72
Fix:
bc19c3728beae88801914b7ba975c53b31fce46e
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
helper/dahelper.c
patch
|
blob
|
history
diff --git
a/helper/dahelper.c
b/helper/dahelper.c
index
01f1708
..
fafe10a
100755
(executable)
--- a/
helper/dahelper.c
+++ b/
helper/dahelper.c
@@
-129,9
+129,8
@@
char *absolutize_filepath(char buffer[PATH_MAX], const char *fname)
assert(fname && "Filename, passed to stdc function is NULL.");
if (absolute_filepath_p(fname) || getcwd(cwd, sizeof(cwd)) == NULL)
- snprintf(buffer,
sizeof(buffer)
, "%s", fname);
+ snprintf(buffer,
PATH_MAX
, "%s", fname);
else
- snprintf(buffer,
sizeof(buffer)
, "%s/%s", cwd, fname);
+ snprintf(buffer,
PATH_MAX
, "%s/%s", cwd, fname);
return buffer;
}
-