diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-02-18 07:57:08 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-02-18 07:57:08 +0000 |
commit | 1bf884494029484b848f0d3a04324cab50b93b28 (patch) | |
tree | 9c5f36d176f8f9e7c56f9d9e1831b49732875b18 /Build | |
parent | 38e5a327e4195734ba943df5bd49c07fdc5fa041 (diff) |
texk/devnag: More bug fix from Richard Koch <koch@math.uoregon.edu>
git-svn-id: svn://tug.org/texlive/trunk@32996 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/devnag/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/devnag/src/devnag.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Build/source/texk/devnag/ChangeLog b/Build/source/texk/devnag/ChangeLog index 07336c9eb2f..0a3e00f3554 100644 --- a/Build/source/texk/devnag/ChangeLog +++ b/Build/source/texk/devnag/ChangeLog @@ -1,3 +1,9 @@ +2014-02-18 Peter Breitenlohner <peb@mppmu.mpg.de> + + * src/devnag.c (dnproc): Bug fix: More strcpy() => memmove() + when src and dest overlap. + Reported by Richard Koch <koch@math.uoregon.edu>. + 2014-02-17 Peter Breitenlohner <peb@mppmu.mpg.de> * src/devnag.c (dnproc): Bug fix: Replace strcpy() by memmove() diff --git a/Build/source/texk/devnag/src/devnag.c b/Build/source/texk/devnag/src/devnag.c index 4e48d7ab248..71ee0993d0b 100644 --- a/Build/source/texk/devnag/src/devnag.c +++ b/Build/source/texk/devnag/src/devnag.c @@ -2265,7 +2265,7 @@ void put_word(void) { if (do_hyphen) { /* hack */ do { w_ptr = strstr(word, "\\-\\qq{"); - if (w_ptr != NULL) strcpy(w_ptr, w_ptr+2); + if (w_ptr != NULL) memmove(w_ptr, w_ptr+2, strlen(w_ptr+2)+1); } while (w_ptr != NULL); } @@ -2499,7 +2499,7 @@ char find_dn(void) { } dn_ptr += 1; } - strcpy(inbuf, dn_ptr); + memmove(inbuf, dn_ptr, strlen(dn_ptr)+1); return(TRUE); } |