String constants are constant!
authorDonn Seeley <donn@ucbvax.Berkeley.EDU>
Fri, 8 Mar 1991 05:25:19 +0000 (21:25 -0800)
committerDonn Seeley <donn@ucbvax.Berkeley.EDU>
Fri, 8 Mar 1991 05:25:19 +0000 (21:25 -0800)
SCCS-vsn: usr.bin/pascal/pxp/main.c 5.4

usr/src/usr.bin/pascal/pxp/main.c

index c212365..3b002ca 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)main.c     5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c     5.4 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -43,7 +43,7 @@ static char sccsid[] = "@(#)main.c    5.3 (Berkeley) %G%";
 char   usagestr[] =
        "pxp [ -acdefjntuw_ ] [ -23456789 ] [ -z [ name ... ] ] name.p";
 char   *howfile =      "/usr/lib/how_pxp";
 char   usagestr[] =
        "pxp [ -acdefjntuw_ ] [ -23456789 ] [ -z [ name ... ] ] name.p";
 char   *howfile =      "/usr/lib/how_pxp";
-char   *stdoutn =      "Standard output";
+char   stdoutn[20] =   "Standard output";
 
 int    unit =  4;
 
 
 int    unit =  4;
 
@@ -192,7 +192,7 @@ usage:
        if (onefile) {
                int onintr();
 
        if (onefile) {
                int onintr();
 
-               cp = (stdoutn = "/tmp/pxp00000") + 13;
+               cp = strcpy(stdoutn, "/tmp/pxp00000") + 13;
                signal(2, onintr);
                for (c = getpid(); c; c /= 10)
                        *--cp |= (c % 10);
                signal(2, onintr);
                for (c = getpid(); c; c /= 10)
                        *--cp |= (c % 10);