1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/games/lgeneral/files/patch-lgc-pg__misc.c
Guido Falsi 6f7709e4b8 - Update to 1.3.0
- Regenerate patch to silence portlint warning

PR:		202849
Submitted by:	tkato432@yahoo.com
2015-09-04 12:19:35 +00:00

15 lines
409 B
C

--- lgc-pg/misc.c.orig 2015-03-15 14:09:24 UTC
+++ lgc-pg/misc.c
@@ -428,7 +428,10 @@ const char *get_gamedir(void)
return ".";
#else
static char gamedir[MAXPATHLEN];
- snprintf( gamedir, MAXPATHLEN, "%s", INSTALLDIR );
+ if (dest_path)
+ snprintf( gamedir, MAXPATHLEN, "%s", dest_path );
+ else
+ snprintf( gamedir, MAXPATHLEN, "%s", INSTALLDIR );
return gamedir;
#endif
}