freebsd-ports/audio/freealut/files/patch-src_alutLoader.c
Oliver Lehmann 426a66c39b - fix a compatibility function (unbreaks games/flightgear,
games/trigger and probably several others as well)
  - do not overwrite CFLAGS (in case the user wants to pass a custom
    CFLAGS as a make argument)
  - bump PORTREVISION

Submitted by:	jylefort
2006-08-07 15:07:19 +00:00

11 lines
443 B
C

--- src/alutLoader.c.orig Sun Aug 6 19:00:08 2006
+++ src/alutLoader.c Sun Aug 6 19:01:10 2006
@@ -474,7 +474,7 @@
/* ToDo: Can we do something less insane than passing 0x7FFFFFFF? */
stream = _alutInputStreamConstructFromMemory (buffer, 0x7FFFFFFF);
- _alutLoadMemoryFromInputStream (stream, format, size, &freq);
+ *data = _alutLoadMemoryFromInputStream (stream, format, size, &freq);
if (*data == NULL)
{
return;