aboutsummaryrefslogtreecommitdiff
path: root/src/server.c
diff options
context:
space:
mode:
authormilo <milo@r0ot.me>2011-04-14 13:45:48 +0200
committermilo <milo@r0ot.me>2011-04-14 13:46:40 +0200
commita0a3ceeaa09382f35067ce9b441e310586e9e6e1 (patch)
tree2ce086db227abdb56a389e5ddc958e556332a7cf /src/server.c
parent42315772b2f3e9491295db107d2a85d97454649f (diff)
downloadlibssh-a0a3ceeaa09382f35067ce9b441e310586e9e6e1.tar.gz
libssh-a0a3ceeaa09382f35067ce9b441e310586e9e6e1.tar.xz
libssh-a0a3ceeaa09382f35067ce9b441e310586e9e6e1.zip
Semantic fix on malloc
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index a3d38896..ae27efaa 100644
--- a/src/server.c
+++ b/src/server.c
@@ -104,7 +104,7 @@ static int server_set_kex(ssh_session session) {
}
}
- server->methods = (char **) malloc(10 * sizeof(char **));
+ server->methods = malloc(10 * sizeof(char *));
if (server->methods == NULL) {
return -1;
}