slackbuilds_ponce/system/ksh-openbsd/patches/linux/eval_c.diff
Daniel LEVAI 7fc7de8808 system/ksh-openbsd: Renamed from "ksh" and updated to 20110909
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2011-10-08 20:29:28 -05:00

19 lines
423 B
Diff

--- ksh.orig/eval.c.orig 2011-03-27 14:33:38.000000000 +0200
+++ ksh/eval.c 2011-03-27 15:08:25.986119913 +0200
@@ -8,6 +8,7 @@
#include <pwd.h>
#include <dirent.h>
#include <sys/stat.h>
+#include "strlcpy.h"
/*
* string expansion
@@ -692,7 +693,7 @@
int c;
int state; /* next state: XBASE, XARG, XSUB, XNULLSUB */
int stype; /* substitution type */
- int slen;
+ int slen = 0;
char *p;
struct tbl *vp;