summaryrefslogtreecommitdiff
path: root/audio/freezetag/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'audio/freezetag/patches/patch-ae')
-rw-r--r--audio/freezetag/patches/patch-ae15
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/freezetag/patches/patch-ae b/audio/freezetag/patches/patch-ae
new file mode 100644
index 00000000000..a9de6e1f09a
--- /dev/null
+++ b/audio/freezetag/patches/patch-ae
@@ -0,0 +1,15 @@
+$NetBSD: patch-ae,v 1.1 2000/12/02 13:26:05 hubertf Exp $
+
+--- src/util.c.orig Fri Apr 9 00:12:25 1999
++++ src/util.c
+@@ -28,7 +28,9 @@
+ gchar *part;
+ gint i;
+
+- if( strlen(original) < offset+length )
++ /* Only re-calculate length if there is anything there, prevent
++ * negative length! - HF */
++ if( strlen(original) < offset+length && strlen(original) > offset)
+ length = strlen(original) - offset;
+
+ part = g_malloc0( length * sizeof(original[0]) );