commit | c414027e927fa025877afd53b27886b6c3b19cfd | [log] [tgz] |
---|---|---|
author | Daniel Rosenberg <drosen@google.com> | Wed Apr 13 18:36:39 2016 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Apr 13 18:36:39 2016 +0000 |
tree | 6db8191cb33a410869db635c234407dc13859ac0 | |
parent | e04c9f34364d76ad0f3580f566ea710285426c83 [diff] | |
parent | db4638ee3044dff2c211f89ac5a19a9734c6b62d [diff] |
Merge "Fix overflow in path building" into nyc-dev
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c index befe38c..5c18f26 100644 --- a/sdcard/sdcard.c +++ b/sdcard/sdcard.c
@@ -341,7 +341,7 @@ 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; }