Patch imported from Debian (Thibaut Paumard)

Fixes crash at startup
This commit is contained in:
Johan van Selst 2015-05-19 17:23:00 +00:00
parent c7ccb7c374
commit ea3c60f017
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=386795
2 changed files with 15 additions and 0 deletions

View File

@ -4,6 +4,7 @@
PORTNAME= yorick
DISTVERSIONPREFIX= y_
DISTVERSION= 2_2_04
PORTREVISION= 1
CATEGORIES= lang math
MAINTAINER= johans@FreeBSD.org

View 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];