diff options
author | Chung-yih Wang <cywang@google.com> | 2009-07-02 19:11:11 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2009-07-02 23:08:39 +0800 |
commit | 7bd460b1208dcd41969e5928ad3c3680962bedce (patch) | |
tree | e91284bf414680579b10d8ef95546920cf4ec16a /cmds | |
parent | dca4e5332cd1f3ce13a3c8b1938eee6689f7f410 (diff) | |
download | frameworks_native-7bd460b1208dcd41969e5928ad3c3680962bedce.zip frameworks_native-7bd460b1208dcd41969e5928ad3c3680962bedce.tar.gz frameworks_native-7bd460b1208dcd41969e5928ad3c3680962bedce.tar.bz2 |
Remove the null-termination for Java string compatibility.
1. Also change the keyname delimiter in CertTool.java.
2. Return NOTFOUND if the result.len==0 in the listKeys().
3. Define the keystore states in the class Keystore.
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/keystore/netkeystore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/keystore/netkeystore.c b/cmds/keystore/netkeystore.c index b0d683c..e45e24f 100644 --- a/cmds/keystore/netkeystore.c +++ b/cmds/keystore/netkeystore.c @@ -142,7 +142,7 @@ static void do_get_state(LPC_MARSHAL *cmd, LPC_MARSHAL *reply) static void do_listkeys(LPC_MARSHAL *cmd, LPC_MARSHAL *reply) { reply->retcode = list_keys((const char*)cmd->data, (char*)reply->data); - if (!reply->retcode) reply->len = strlen((char*)reply->data) + 1; + if (!reply->retcode) reply->len = strlen((char*)reply->data); } // args of get(): |