0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 13:03:31 +00:00
termux-packages/packages/greed/lockfile_path.patch
2024-05-09 13:35:20 +03:00

11 lines
334 B
Diff

+++ ./greed.c
@@ -72,7 +72,7 @@
/* rnd() returns a random number between 1 and x */
#define rnd(x) (int)((lrand48() % (x)) + 1)
-#define LOCKPATH "/tmp/Greed.lock" /* lock path for high score file */
+#define LOCKPATH "@TERMUX_PREFIX@/tmp/Greed.lock" /* lock path for high score file */
#define LOCALSCOREFILE ".greedscores"