X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/fabd1805a8f429ca83b4271aabd1206ac3537ebb..a460b361fe6734325bead016ef2dd39e4da302f4:/testback.c diff --git a/testback.c b/testback.c index 333c316b..e24217c0 100644 --- a/testback.c +++ b/testback.c @@ -1,4 +1,4 @@ -/* $Id: testback.c,v 1.6 2003/01/15 23:30:21 ben Exp $ */ +/* $Id: testback.c,v 1.7 2003/03/29 16:14:26 simon Exp $ */ /* * Copyright (c) 1999 Simon Tatham * Copyright (c) 1999 Ben Harris @@ -77,7 +77,7 @@ static char *null_init(void *frontend_handle, void **backend_handle, static char *loop_init(void *frontend_handle, void **backend_handle, Config *cfg, char *host, int port, char **realhost, int nodelay) { - struct loop_state *st = smalloc(sizeof(*st)); + struct loop_state *st = snew(struct loop_state); st->term = frontend_handle; *backend_handle = st;