diff options
| author | Daniel Rosenberg <drosen@google.com> | 2016-04-13 18:36:39 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-04-13 18:36:39 +0000 |
| commit | c414027e927fa025877afd53b27886b6c3b19cfd (patch) | |
| tree | 6db8191cb33a410869db635c234407dc13859ac0 /sdcard | |
| parent | e04c9f34364d76ad0f3580f566ea710285426c83 (diff) | |
| parent | db4638ee3044dff2c211f89ac5a19a9734c6b62d (diff) | |
| download | system_core-c414027e927fa025877afd53b27886b6c3b19cfd.tar.gz system_core-c414027e927fa025877afd53b27886b6c3b19cfd.tar.bz2 system_core-c414027e927fa025877afd53b27886b6c3b19cfd.zip | |
Merge "Fix overflow in path building" into nyc-dev
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; } |
