From 399041180ffccd613119f2bd41cf7563e675600d Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sat, 10 Oct 2009 16:25:40 +0200 Subject: resolve callback crash --- include/libssh/callbacks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/libssh/callbacks.h b/include/libssh/callbacks.h index 25f071a..1adaaa3 100644 --- a/include/libssh/callbacks.h +++ b/include/libssh/callbacks.h @@ -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); -- cgit v1.2.3