diff options
Diffstat (limited to 'misc/kdeutils2/patches/patch-ab')
-rw-r--r-- | misc/kdeutils2/patches/patch-ab | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/misc/kdeutils2/patches/patch-ab b/misc/kdeutils2/patches/patch-ab new file mode 100644 index 00000000000..22c039fa432 --- /dev/null +++ b/misc/kdeutils2/patches/patch-ab @@ -0,0 +1,48 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/03/14 16:05:49 skrll Exp $ + +--- khexedit/dialog.cc.orig Tue Aug 1 17:06:40 2000 ++++ khexedit/dialog.cc +@@ -1,6 +1,6 @@ + /* + * khexedit - Versatile hex editor +- * Copyright (C) 1999 Espen Sand, espensa@online.no ++ * Copyright (C) 1999 Eepen Sand, espensa@online.no + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by +@@ -20,7 +20,7 @@ + + #include <ctype.h> + #include <iostream.h> +-#include <values.h> ++#include <limits.h> + + #include <qbuttongroup.h> + #include <qfileinfo.h> +@@ -940,7 +940,7 @@ + mGroupSpin = new QSpinBox( page ); + if( mGroupSpin == 0 ) { return; } + mGroupSpin->setMinimumWidth( fontMetrics().width("M")*20 ); +- mGroupSpin->setRange(1, MAXINT ); ++ mGroupSpin->setRange(1, INT_MAX ); + + text = i18n("&Group size [bytes]"); + QLabel *label = new QLabel( mGroupSpin, text, page ); +@@ -952,7 +952,7 @@ + mBitSpin = new QSpinBox( page ); + if( mBitSpin == 0 ) { return; } + mBitSpin->setMinimumWidth( fontMetrics().width("M")*20 ); +- mBitSpin->setRange(-MAXINT, MAXINT); ++ mBitSpin->setRange(INT_MIN, INT_MAX); + + text = i18n("S&hift size [bits]"); + label = new QLabel( mBitSpin, text, page ); +@@ -1098,7 +1098,7 @@ + mSizeBox = new QSpinBox( plainPage() ); + if( mSizeBox == 0 ) { return; } + mSizeBox->setMinimumWidth( fontMetrics().maxWidth()*17 ); +- mSizeBox->setRange( 1, MAXINT ); ++ mSizeBox->setRange( 1, INT_MAX ); + mSizeBox->setValue( 1 ); + + QLabel *label = new QLabel( mSizeBox, i18n("&Size"), plainPage() ); |