diff options
-rw-r--r-- | util_lib/elf_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util_lib/elf_info.c b/util_lib/elf_info.c index ce71c605..7ca9870b 100644 --- a/util_lib/elf_info.c +++ b/util_lib/elf_info.c @@ -357,7 +357,7 @@ void scan_vmcoreinfo(char *start, size_t size) if (len >= sizeof(temp_buf)) len = sizeof(temp_buf) - 1; strncpy(temp_buf, pos, len); - temp_buf[len + 1] = '\0'; + temp_buf[len] = '\0'; pos = temp_buf; len = len + 1; |