diff options
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -645,7 +645,7 @@ the same file name is found in the `doc-directory'. */) | |||
| 645 | { | 645 | { |
| 646 | ptrdiff_t len = end - p - 2; | 646 | ptrdiff_t len = end - p - 2; |
| 647 | char *fromfile = alloca (len + 1); | 647 | char *fromfile = alloca (len + 1); |
| 648 | strncpy (fromfile, &p[2], len); | 648 | memcpy (fromfile, &p[2], len); |
| 649 | fromfile[len] = 0; | 649 | fromfile[len] = 0; |
| 650 | if (fromfile[len-1] == 'c') | 650 | if (fromfile[len-1] == 'c') |
| 651 | fromfile[len-1] = 'o'; | 651 | fromfile[len-1] = 'o'; |