From adcb656c84b8a311eeebe31d9cc530c1ed822e5b Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 17 Apr 2007 05:43:22 +0000 Subject: correct dump string (Fazlul Shahriar) --- src/cmd/9term/win.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cmd/9term') diff --git a/src/cmd/9term/win.c b/src/cmd/9term/win.c index cef83d06..30f819f9 100644 --- a/src/cmd/9term/win.c +++ b/src/cmd/9term/win.c @@ -130,6 +130,9 @@ threadmain(int argc, char **argv) char buf[256]; char buf1[128]; CFsys *fs; + char *dump; + + dump = onestring(argc, argv); ARGBEGIN{ case 'd': @@ -197,7 +200,7 @@ threadmain(int argc, char **argv) fswrite(ctlfd, buf, strlen(buf)); sprint(buf, "dumpdir %s/\n", buf1); fswrite(ctlfd, buf, strlen(buf)); - sprint(buf, "dump %s\n", onestring(argc, argv)); + sprint(buf, "dump %s\n", dump); fswrite(ctlfd, buf, strlen(buf)); updatewinsize(25, 80, 0, 0); -- cgit v1.2.3