don't bother with sprintf
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 23 Oct 1987 03:59:57 +0000 (19:59 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 23 Oct 1987 03:59:57 +0000 (19:59 -0800)
SCCS-vsn: games/snake/snake/snake.c 5.2

usr/src/games/snake/snake/snake.c

index 36008d0..65adb77 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)snake.c    5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)snake.c    5.2 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -627,11 +627,11 @@ int w;{
        if (p.line < 0)
                p.line = 0;
        if (w) {
        if (p.line < 0)
                p.line = 0;
        if (w) {
-               sprintf(str,"BONUS!!!");
+               strcpy(str,"BONUS!!!");
                loot = loot - penalty;
                penalty = 0;
        } else {
                loot = loot - penalty;
                penalty = 0;
        } else {
-               sprintf(str,"SPACE WARP!!!");
+               strcpy(str,"SPACE WARP!!!");
                penalty += loot/PENALTY;
        }
        for(j=0;j<3;j++){
                penalty += loot/PENALTY;
        }
        for(j=0;j<3;j++){