openbsd-ports/games/sudoku/patches/patch-sudoku_c
alek d38a47ec12 Import sudoku 1.0.1
A sudoku game with:
* a curses interface;
* generates hints upon request;
* several levels of difficulty;
* generation of new boards;
* easy entry of boards published in newspapers, internet, etc...;
* multiple output formats (text,csv,html,postscript).

From Jasper Lievisse Adriaanse <jasper@nedbsd.nl>
2006-05-29 19:32:08 +00:00

26 lines
785 B
Plaintext

$OpenBSD: patch-sudoku_c,v 1.1.1.1 2006/05/29 19:32:08 alek Exp $
--- sudoku.c.orig Mon Jul 25 03:13:53 2005
+++ sudoku.c Mon May 29 16:05:37 2006
@@ -44,10 +44,10 @@
/* Default file locations */
#ifndef TEMPLATE
-#define TEMPLATE "/usr/lib/sudoku/template"
+#define TEMPLATE "!!PREFIX!!/share/sudoku/template"
#endif
#ifndef PRECANNED
-#define PRECANNED "/usr/lib/sudoku/precanned"
+#define PRECANNED "!!PREFIX!!/share/sudoku/precanned"
#endif
static const char * program; /* argv[0] */
@@ -1837,7 +1837,7 @@
/* Read character input (raw processing mode) */
i = strlen( userfile );
- while( '\r' != ( ch = getkey( ) ) )
+ while( '\n' != ( ch = getkey( ) ) )
{
if( 0x08 == ch || VKEY_LEFT == ch ) /* destructive backspace */
{