1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

resolve callback crash

This commit is contained in:
Aris Adamantiadis
2009-10-10 16:25:40 +02:00
parent 3f55fb5b22
commit 399041180f
2 changed files with 9 additions and 10 deletions

View File

@@ -79,7 +79,7 @@ typedef struct ssh_callbacks_struct * ssh_callbacks;
* evolves with time.
*/
#define ssh_callbacks_init(p) do {\
p->size=sizeof(*p); \
(p)->size=sizeof(*(p)); \
} while(0);
LIBSSH_API int ssh_set_callbacks(ssh_session session, ssh_callbacks cb);