1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/games/lugaru/files/patch-Source__openal_wrapper.cpp
Rusmir Dusko ff770b517f - Fix build with gcc47, add patch
PR:		ports/184570
Submitted by:	Christoph Moench-Tegeder <cmt@burggraben.net>
Approved by:	pawel / wg (mentors, implicit)
2013-12-07 18:07:03 +00:00

12 lines
390 B
C++

--- ./Source/openal_wrapper.cpp.orig 2010-05-16 06:42:54.000000000 +0200
+++ ./Source/openal_wrapper.cpp 2013-12-07 18:33:55.000000000 +0100
@@ -374,7 +374,7 @@
char *fname = (char *) alloca(strlen(_fname) + 16);
strcpy(fname, _fname);
char *ptr = strchr(fname, '.');
- if (ptr) *ptr = NULL;
+ if (ptr) ptr = NULL;
strcat(fname, ".ogg");
// just in case...