date and time created 88/10/21 15:21:52 by bostic
[unix-history] / usr / src / old / boggle / boggle.c
index aa2469d..cc1c8c0 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)boggle.c   5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)boggle.c   5.3 (Berkeley) %G%";
 #endif not lint
 
 #include <ctype.h>
 #endif not lint
 
 #include <ctype.h>
@@ -65,7 +65,7 @@ extern char *ctime(), *getlogin();
 extern long lseek();
 
 /* dictionary interface */
 extern long lseek();
 
 /* dictionary interface */
-char defname[] = "/usr/games/bogdict";
+char defname[] = "/usr/games/lib/bogdict";
 char *dictname = &defname[0];
 FILE *dict;
 
 char *dictname = &defname[0];
 FILE *dict;
 
@@ -638,7 +638,7 @@ char **argv;
                        printboard();
                        games++;
                        if (logfile >= 0) {
                        printboard();
                        games++;
                        if (logfile >= 0) {
-                               sprintf(&logbuff[0], "%4d", games);
+                               (void)sprintf(&logbuff[0], "%4d", games);
                                lseek(logfile, logloc, 0);
                                write(logfile, &logbuff[0], 4);
                        }
                                lseek(logfile, logloc, 0);
                                write(logfile, &logbuff[0], 4);
                        }