]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/ed.c
ndb/dnsquery, ndb/csquery: handle long lines
[plan9front.git] / sys / src / cmd / ed.c
index 35ce3d34303eb7799e7d6e16147554ec891bfc4c..fcd1d4f54ce17c1ee84637201351c21b76906045 100644 (file)
@@ -157,7 +157,7 @@ main(int argc, char *argv[])
                globp = L"r";
        }
        zero = malloc((nlall+5)*sizeof(int*));
-       tfname = mktemp("/tmp/eXXXXX");
+       tfname = mktemp(strdup("/tmp/eXXXXX"));
        init();
        setjmp(savej);
        commands();