mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
Patch imported from Debian (Thibaut Paumard)
Fixes crash at startup
This commit is contained in:
parent
c7ccb7c374
commit
ea3c60f017
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=386795
@ -4,6 +4,7 @@
|
||||
PORTNAME= yorick
|
||||
DISTVERSIONPREFIX= y_
|
||||
DISTVERSION= 2_2_04
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= lang math
|
||||
|
||||
MAINTAINER= johans@FreeBSD.org
|
||||
|
14
lang/yorick/files/patch-play_unix_slinks.c
Normal file
14
lang/yorick/files/patch-play_unix_slinks.c
Normal file
@ -0,0 +1,14 @@
|
||||
Patch imported from Debian (Thibaut Paumard)
|
||||
Fixes crash at startup
|
||||
|
||||
--- play/unix/slinks.c.orig 2015-05-19 17:19:00 UTC
|
||||
+++ play/unix/slinks.c
|
||||
@@ -101,7 +101,7 @@ u_find_exe(const char *argv0)
|
||||
}
|
||||
if (wkspc[j-1] == '/') s = 0;
|
||||
else s = 1, wkspc[j] = '/';
|
||||
- for (; j<k+i && j+s<P_WKSIZ ; j++) wkspc[j+s] = argv0[j-k];
|
||||
+ for (; j<k+i+1 && j+s<P_WKSIZ ; j++) wkspc[j+s] = argv0[j-k];
|
||||
if (u_executable_file(wkspc) >= 0) break;
|
||||
k = 0;
|
||||
c = path[0];
|
Loading…
Reference in New Issue
Block a user