diff options
| author | Kenny Root <kroot@google.com> | 2012-04-27 15:33:58 -0700 |
|---|---|---|
| committer | The Android Automerger <android-build@android.com> | 2012-04-27 15:50:44 -0700 |
| commit | 5dcf48a2c5956a763694f24472bcd48434fc1c94 (patch) | |
| tree | 66f1c614261d1e2f1d97f4381a0b7a3b001f32ed | |
| parent | 344ca10856f3d3087a3288ce8f91ad83665d93fb (diff) | |
| download | android_system_vold-5dcf48a2c5956a763694f24472bcd48434fc1c94.tar.gz android_system_vold-5dcf48a2c5956a763694f24472bcd48434fc1c94.tar.bz2 android_system_vold-5dcf48a2c5956a763694f24472bcd48434fc1c94.zip | |
Fix truncation of ASEC ids
Change-Id: I1e6bfcc6b0a5be47e6fd19922fc81669f61b5dba
| -rw-r--r-- | CommandListener.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CommandListener.cpp b/CommandListener.cpp index d75d76c..dff4625 100644 --- a/CommandListener.cpp +++ b/CommandListener.cpp @@ -290,7 +290,7 @@ void CommandListener::AsecCmd::listAsecsInDirectory(SocketClient *cli, const cha !strcmp(&dent->d_name[name_len - 5], ".asec")) { char id[255]; memset(id, 0, sizeof(id)); - strlcpy(id, dent->d_name, name_len - 5); + strlcpy(id, dent->d_name, name_len - 4); cli->sendMsg(ResponseCode::AsecListResult, id, false); } } |
