diff options
author | Chet Ramey <chet.ramey@case.edu> | 2012-04-09 10:01:06 -0400 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2012-04-09 10:01:06 -0400 |
commit | ec860d767b08693fcc6d45ab6f714628fa515f2b (patch) | |
tree | bc8cb122c504d4ad81c2a63b4a2b38d83a80b2af /stringlib.c | |
parent | 8a44b411b7475a96485025cec08c9aea3a8113c9 (diff) | |
download | bash-ec860d767b08693fcc6d45ab6f714628fa515f2b.tar.gz |
commit bash-20120322 snapshot
Diffstat (limited to 'stringlib.c')
-rw-r--r-- | stringlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stringlib.c b/stringlib.c index 59670a92..95092993 100644 --- a/stringlib.c +++ b/stringlib.c @@ -133,7 +133,7 @@ substring (string, start, end) len = end - start; result = (char *)xmalloc (len + 1); - strncpy (result, string + start, len); + memcpy (result, string + start, len); result[len] = '\0'; return (result); } |