head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.52 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.50 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.48 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.46 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.44 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.42 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.40 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.38 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.36 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.34 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.32 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.30 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.28 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.26 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.24 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.22 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.20 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.18 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.16 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.14 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.12 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.4.0.10 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.8 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.6 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.4 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.2 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.3.0.4 pkgsrc-2003Q4-base:1.3 netbsd-1-6-1:1.3.0.2; locks; strict; comment @# @; 1.4 date 2004.03.05.15.21.01; author pooka; state dead; branches; next 1.3; 1.3 date 2003.03.01.21.14.55; author pooka; state Exp; branches 1.3.2.1; next 1.2; 1.2 date 2003.03.01.21.12.51; author pooka; state dead; branches; next 1.1; 1.1 date 2003.02.19.20.25.21; author pooka; state Exp; branches; next ; 1.3.2.1 date 2003.03.01.21.14.55; author grant; state dead; branches; next 1.3.2.2; 1.3.2.2 date 2003.04.20.11.26.14; author grant; state Exp; branches; next ; desc @@ 1.4 log @Nethack 3.4.3 This is a bugfix-release. It should be compatible with bones files and savegames all the way back to 3.4.0 (but of course it's safer to ascend before upgrade). Assorted fixes (full list in doc/fixes34.3): * Correct several inconsistencies * Correct a potentially fatal bug caused by dropping loadstones * Handle level completely filled with monsters better * X11 player selection fixes, one of which could be fatal * Eliminated a gold-in-shop-container cheat @ text @$NetBSD: patch-aj,v 1.3 2003/03/01 21:14:55 pooka Exp $ --- src/files.c.orig 2003-02-23 16:43:26.000000000 +0200 +++ src/files.c 2003-03-01 22:57:10.000000000 +0200 @@@@ -47,6 +47,8 @@@@ # define O_BINARY 0 #endif +#include + #ifdef PREFIXES_IN_USE #define FQN_NUMBUF 4 static char fqn_filename_buffer[FQN_NUMBUF][FQN_MAX_FILENAME]; @ 1.3 log @Thanks for misleading me, cvs, but I really want this to go in. @ text @d1 1 a1 1 $NetBSD$ @ 1.3.2.1 log @file patch-aj was added on branch netbsd-1-6-1 on 2003-04-20 11:26:14 +0000 @ text @d1 13 @ 1.3.2.2 log @Add new file (requested by pooka in ticket #1267): initial patch which cvs missed the first time. @ text @a0 13 $NetBSD: patch-aj,v 1.3.2.1 2003/04/20 11:26:14 grant Exp $ --- src/files.c.orig 2003-02-23 16:43:26.000000000 +0200 +++ src/files.c 2003-03-01 22:57:10.000000000 +0200 @@@@ -47,6 +47,8 @@@@ # define O_BINARY 0 #endif +#include + #ifdef PREFIXES_IN_USE #define FQN_NUMBUF 4 static char fqn_filename_buffer[FQN_NUMBUF][FQN_MAX_FILENAME]; @ 1.2 log @Hello NetHack 3.4.1 This is a bugfix release, no new features introduced. As a compensation for no new features, savegames and bones levels from NetHack 3.4.0 should work, and that's why I kept the datafile directory named nethackdir340. In theory you should be able to simply update the nethack pkgs and continue playing, but I'll not accept any death threats if it doesn't work, so please make sure you make the appropriate backups before trying. @ text @d1 1 a1 19 $NetBSD: patch-aj,v 1.1 2003/02/19 20:25:21 pooka Exp $ *** src/topten.c.orig Mon Feb 4 08:06:07 2002 --- src/topten.c Mon Feb 10 10:48:55 2003 *************** *** 856,861 **** --- 856,867 ---- else { if (playerct > 1) Strcat(pbuf, "any of "); for (i = 0; i < playerct; i++) { + /* stop printing players if there are too many to fit */ + if (strlen(pbuf) + strlen(players[i]) + 2 >= BUFSZ) { + if (strlen(pbuf) < BUFSZ-4) Strcat(pbuf, "..."); + else Strcpy(pbuf+strlen(pbuf)-4, "..."); + break; + } Strcat(pbuf, players[i]); if (i < playerct-1) { if (players[i][0] == '-' && d3 11 @ 1.1 log @fix buffer overrun (games group vulnerability) when running nethack -s patch from nethack.org @ text @d1 1 a1 1 $NetBSD$ @