about summary refs log tree commit diff
path: root/Src/params.c
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2018-09-06 10:39:45 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2018-09-16 17:42:31 +0100
commitf479764b34f997d27f591ddeb93d785f899534bb (patch)
treeb40f2c7e7d1ccb353ab541f3dad80d3f8a984e07 /Src/params.c
parent301ca1229a6ca967f8bd7d3c379ff6b9983a3673 (diff)
downloadzsh-f479764b34f997d27f591ddeb93d785f899534bb.tar.gz
zsh-f479764b34f997d27f591ddeb93d785f899534bb.tar.xz
zsh-f479764b34f997d27f591ddeb93d785f899534bb.zip
43396: Job control debug.
Particularly for TTY ownership.
Diffstat (limited to 'Src/params.c')
-rw-r--r--Src/params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/params.c b/Src/params.c
index a1c299f60..66687fbf3 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -2586,7 +2586,7 @@ assignstrvalue(Value v, char *val, int flags)
 		Param pm = v->pm;
                 /* Size doesn't change, can limit actions to only
                  * overwriting bytes in already allocated string */
-                strncpy(z + v->start, val, vlen);
+                memcpy(z + v->start, val, vlen);
 		/* Implement remainder of strsetfn */
 		if (!(pm->node.flags & PM_HASHELEM) &&
 		    ((pm->node.flags & PM_NAMEDDIR) ||