summaryrefslogtreecommitdiffhomepage
path: root/scp.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2006-03-08 15:46:24 +0000
committerMatt Johnston <matt@ucc.asn.au>2006-03-08 15:46:24 +0000
commit9368e4db33e86464614fc140897a25ac310c834b (patch)
tree7e498739f812b311601f0e4354cc5cadf0a5fa05 /scp.c
parentae15e644b196d1925dcbe31644096148c31a80df (diff)
code was untested and wrong.
--HG-- extra : convert_revision : bd8c4eb7071bb69f5cf17715072ae625a5267324
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/scp.c b/scp.c
index 7923996..9e1ca17 100644
--- a/scp.c
+++ b/scp.c
@@ -234,18 +234,18 @@ do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout, int argc)
#ifdef __uClinux__
/* clean up command */
/* pop cmd */
- xfree(args->list[args->num-1]);
- args->list[args->num-1]=NULL;
- args->num--;
+ xfree(args.list[args.num-1]);
+ args.list[args.num-1]=NULL;
+ args.num--;
/* pop host */
- xfree(args->list[args->num-1]);
- args->list[args->num-1]=NULL;
- args->num--;
+ xfree(args.list[args.num-1]);
+ args.list[args.num-1]=NULL;
+ args.num--;
/* pop user */
if (remuser != NULL) {
- xfree(args->list[args->num-1]);
- args->list[args->num-1]=NULL;
- args->num--;
+ xfree(args.list[args.num-1]);
+ args.list[args.num-1]=NULL;
+ args.num--;
}
#endif /* __uClinux__ */