diff options
-rw-r--r-- | soltools/cpp/_lex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/soltools/cpp/_lex.c b/soltools/cpp/_lex.c index 3fa180b040a4..70c808b87187 100644 --- a/soltools/cpp/_lex.c +++ b/soltools/cpp/_lex.c @@ -668,7 +668,7 @@ Source * len = strlen(str); s->inb = domalloc(len + 4); s->inp = s->inb; - strncpy((char *) s->inp, str, len); + memcpy((char *) s->inp, str, len); } else { |