diff -u iptables-1.2.2/extensions/libipt_psd.c.orig iptables-1.2.2/extensions/libipt_psd.c
--- iptables-1.2.2/extensions/libipt_psd.c.orig	Thu Aug 30 15:37:24 2001
+++ iptables-1.2.2/extensions/libipt_psd.c	Thu Aug 30 15:41:17 2001
@@ -82,6 +82,12 @@
 {
 	struct ipt_psd_info *psdinfo = (struct ipt_psd_info *)(*match)->data;
 	int num;
+ 	char storage[sizeof(optarg) + 1];
+ 
+ 	/* string_to_number needs this */
+ 	storage[0] = ' ';
+ 	strncpy(&storage[1], optarg, (size_t) sizeof(optarg));
+ 	storage[sizeof(optarg)] = 0;
 
 	switch (c) {
 	/* PSD-weight-threshold */
@@ -90,7 +96,7 @@
 			exit_error(PARAMETER_PROBLEM,
 				   "Can't specify --psd-weight-threshold "
 				   "twice");
-                num = string_to_number(optarg, 0, 10000);
+                num = string_to_number(storage, 0, 10000);
                 if (num <= 0)
                         exit_error(PARAMETER_PROBLEM,
                                    "bad --psd-weight-threshold `%s'", optarg);
@@ -103,7 +109,7 @@
 		if (*flags & IPT_PSD_OPT_DTRESH)
 			exit_error(PARAMETER_PROBLEM,
 				   "Can't specify --psd-delay-threshold twice");
-                num = string_to_number(optarg, 0, 10000);
+                num = string_to_number(storage, 0, 10000);
                 if (num <= 0)
                         exit_error(PARAMETER_PROBLEM,
                                    "bad --psd-delay-threshold `%s'", optarg);
@@ -116,7 +122,7 @@
 		if (*flags & IPT_PSD_OPT_LPWEIGHT)
 			exit_error(PARAMETER_PROBLEM,
 				   "Can't specify --psd-lo-ports-weight twice");
-                num = string_to_number(optarg, 0, 10000);
+                num = string_to_number(storage, 0, 10000);
                 if (num <= 0)
                         exit_error(PARAMETER_PROBLEM,
                                    "bad --psd-lo-ports-weight `%s'", optarg);
@@ -129,7 +135,7 @@
 		if (*flags & IPT_PSD_OPT_HPWEIGHT)
 			exit_error(PARAMETER_PROBLEM,
 				   "Can't specify --psd-hi-ports-weight twice");
-                num = string_to_number(optarg, 0, 10000);
+                num = string_to_number(storage, 0, 10000);
                 if (num <= 0)
                         exit_error(PARAMETER_PROBLEM,
                                    "bad --psd-hi-ports-weight `%s'", optarg);
diff -u iptables-1.2.2/patch-o-matic/psd.patch.config.in.orig iptables-1.2.2/patch-o-matic/psd.patch.config.in
--- iptables-1.2.2/patch-o-matic/psd.patch.config.in.orig	Sun Feb  4 21:49:07 2001
+++ iptables-1.2.2/patch-o-matic/psd.patch.config.in	Thu Aug 30 15:38:39 2001
@@ -1,2 +1,2 @@
   dep_tristate '  TOS match support' CONFIG_IP_NF_MATCH_TOS $CONFIG_IP_NF_IPTABLES
-  dep_tristate '  PSD match support' CONFIG_IP_NF_MATCH_PSD $CONFIG_IP_NF_IPTABLES
+  dep_tristate '  psd match support' CONFIG_IP_NF_MATCH_PSD $CONFIG_IP_NF_IPTABLES
diff -u iptables-1.2.2/patch-o-matic/psd.patch.configure.help.orig iptables-1.2.2/patch-o-matic/psd.patch.configure.help
--- iptables-1.2.2/patch-o-matic/psd.patch.configure.help.orig	Sun Feb  4 21:49:07 2001
+++ iptables-1.2.2/patch-o-matic/psd.patch.configure.help	Thu Aug 30 15:38:39 2001
@@ -1,5 +1,5 @@
 CONFIG_IP_NF_MATCH_TOS
-PSD match support
+psd match support
 CONFIG_IP_NF_MATCH_PSD
   This option adds a `psd' match, which allows you to create rules in
   any iptables table wich will detect TCP and UDP port scans.
diff -u iptables-1.2.2/patch-o-matic/psd.patch.help.orig iptables-1.2.2/patch-o-matic/psd.patch.help
--- iptables-1.2.2/patch-o-matic/psd.patch.help.orig	Tue Feb  6 14:43:56 2001
+++ iptables-1.2.2/patch-o-matic/psd.patch.help	Thu Aug 30 15:38:39 2001
@@ -1,9 +1,9 @@
-Author: Dennis Koslowski <koslowski@astaro.de>
+Author: Dennis Koslowski <dkoslowski@astaro.de>
 Status: Experimental
 
 This option adds CONFIG_IP_NF_MATCH_PSD, which supplies portscan
-detection match (PSD). This match will attempt to detect TCP and UDP
-port scans. This match was derived from Solar Designer´s scanlogd.
+detection match (psd). This match will attempt to detect TCP and UDP
+port scans. This match was derived from Solar Designer's scanlogd.
 
 Suppported options are:
 
