=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/authfd.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- src/usr.bin/ssh/authfd.c 2001/06/26 04:59:59 1.42 +++ src/usr.bin/ssh/authfd.c 2001/08/01 22:03:33 1.43 @@ -35,7 +35,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: authfd.c,v 1.42 2001/06/26 04:59:59 markus Exp $"); +RCSID("$OpenBSD: authfd.c,v 1.43 2001/08/01 22:03:33 markus Exp $"); #include @@ -533,7 +533,7 @@ } int -ssh_update_card(AuthenticationConnection *auth, int add, int reader_id) +ssh_update_card(AuthenticationConnection *auth, int add, const char *reader_id) { Buffer msg; int type; @@ -541,7 +541,7 @@ buffer_init(&msg); buffer_put_char(&msg, add ? SSH_AGENTC_ADD_SMARTCARD_KEY : SSH_AGENTC_REMOVE_SMARTCARD_KEY); - buffer_put_int(&msg, reader_id); + buffer_put_cstring(&msg, reader_id); if (ssh_request_reply(auth, &msg, &msg) == 0) { buffer_free(&msg); return 0;