Description: SEGFAULT at startup if not in the first PATH
 This is due to lack of \0 at the end of tried path in slinks.c
Author: Thibaut Paumard <thibaut@debian.org>
Origin: vendor
Bug-Debian: https://bugs.debian.org/785692
Forwarded: Yes (by e-mail)
Last-Update: 2015-05-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/play/unix/slinks.c
+++ b/play/unix/slinks.c
@@ -101,7 +101,7 @@
       }
       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];
