diff options
| author | Daniel Rosenberg <drosen@google.com> | 2016-04-13 18:39:06 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2016-04-13 18:39:06 +0000 |
| commit | 2a9dc6581ff48ce8aa53c647b6ac412ab66c943f (patch) | |
| tree | e081a030fb7e91b4bdebb96f0cf7aa260eb0223c /sdcard | |
| parent | 1e0161e9342451c4f274707d210895c567a8a098 (diff) | |
| parent | c414027e927fa025877afd53b27886b6c3b19cfd (diff) | |
| download | system_core-2a9dc6581ff48ce8aa53c647b6ac412ab66c943f.tar.gz system_core-2a9dc6581ff48ce8aa53c647b6ac412ab66c943f.tar.bz2 system_core-2a9dc6581ff48ce8aa53c647b6ac412ab66c943f.zip | |
Merge "Fix overflow in path building" into nyc-dev
am: c414027
* commit 'c414027e927fa025877afd53b27886b6c3b19cfd':
Fix overflow in path building
Change-Id: I6e2692539738d81055cc49a183a34261074e5e68
Diffstat (limited to 'sdcard')
| -rw-r--r-- | sdcard/sdcard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c index befe38c9e..5c18f26a4 100644 --- a/sdcard/sdcard.c +++ b/sdcard/sdcard.c @@ -341,7 +341,7 @@ static ssize_t get_node_path_locked(struct node* node, char* buf, size_t bufsize ssize_t pathlen = 0; if (node->parent && node->graft_path == NULL) { - pathlen = get_node_path_locked(node->parent, buf, bufsize - namelen - 2); + pathlen = get_node_path_locked(node->parent, buf, bufsize - namelen - 1); if (pathlen < 0) { return -1; } |
