diff options
author | kristerw <kristerw@pkgsrc.org> | 2005-06-18 20:11:01 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2005-06-18 20:11:01 +0000 |
commit | d6ffa1182ab608aa95c36742dfa3b8b9504ec441 (patch) | |
tree | c4e03559a5f48e294bf2d35a7a1de8b6e2a10e85 /graphics/glitz/patches/patch-aa | |
parent | acdfbe85bf6a93ffeb04846577c89a792ec167dc (diff) | |
download | pkgsrc-d6ffa1182ab608aa95c36742dfa3b8b9504ec441.tar.gz |
Fix a cut-and-paste error that prevented compilation on NetBSD 1.6.
Diffstat (limited to 'graphics/glitz/patches/patch-aa')
-rw-r--r-- | graphics/glitz/patches/patch-aa | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/graphics/glitz/patches/patch-aa b/graphics/glitz/patches/patch-aa new file mode 100644 index 00000000000..accc922a914 --- /dev/null +++ b/graphics/glitz/patches/patch-aa @@ -0,0 +1,27 @@ +$NetBSD: patch-aa,v 1.3 2005/06/18 20:11:01 kristerw Exp $ + +--- src/glx/glitz_glx_info.c.orig Sat Jun 18 21:07:20 2005 ++++ src/glx/glitz_glx_info.c Sat Jun 18 21:08:06 2005 +@@ -379,15 +379,15 @@ + if (gl_library) { + int len = strlen (gl_library); + +- if (thread_info->gl_library) { +- free (thread_info->gl_library); +- thread_info->gl_library = NULL; ++ if (thread_info.gl_library) { ++ free (thread_info.gl_library); ++ thread_info.gl_library = NULL; + } + +- thread_info->gl_library = malloc (len + 1); +- if (thread_info->gl_library) { +- memcpy (thread_info->gl_library, gl_library, len); +- thread_info->gl_library[len] = '\0'; ++ thread_info.gl_library = malloc (len + 1); ++ if (thread_info.gl_library) { ++ memcpy (thread_info.gl_library, gl_library, len); ++ thread_info.gl_library[len] = '\0'; + } + } + |