diff options
author | Rob Austein <sra@hactrn.net> | 2016-05-17 21:45:20 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-05-17 21:45:20 -0400 |
commit | 818c1434a93cde13e349a73bd617b0a98a51ad76 (patch) | |
tree | 989de245f833277cea7d6ddc1a298176ebc69010 /ks.c | |
parent | c7a7c9a5913c56e4d555f8c1bb2b97a3068a8aae (diff) |
Increment return count, not pointer to return count. Feh, C.
Diffstat (limited to 'ks.c')
-rw-r--r-- | ks.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -303,7 +303,7 @@ hal_error_t hal_ks_list(hal_pkey_info_t *result, result[*result_len].flags = db->keys[i].flags; result[*result_len].name_len = db->keys[i].name_len; memcpy(result[*result_len].name, db->keys[i].name, db->keys[i].name_len); - ++result_len; + ++ *result_len; } return HAL_OK; |