summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2014-12-02 09:33:29 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2014-12-02 09:33:29 (GMT)
commit58df4f1b44a1142bba500f980fd26806413b1728 (patch) (side-by-side diff)
treeb7c401f4fdbbab5308304378967e3eab69b7c2b0
parent54d1c42ac2cb91389fca04a5018ad573e4ae265a (diff)
downloadcpio-58df4f1b44a1142bba500f980fd26806413b1728.tar.gz
cpio-58df4f1b44a1142bba500f980fd26806413b1728.tar.bz2
Fix typo
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/copyin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/copyin.c b/src/copyin.c
index 042cc41..264bfcb 100644
--- a/src/copyin.c
+++ b/src/copyin.c
@@ -138,7 +138,7 @@ get_link_name (struct cpio_file_stat *file_hdr, int in_file_des)
}
else
{
- link_name = xmalloc (file_hdr->c_filesize);
+ link_name = xmalloc (file_hdr->c_filesize + 1);
tape_buffered_read (link_name, in_file_des, file_hdr->c_filesize);
link_name[file_hdr->c_filesize] = '\0';
tape_skip_padding (in_file_des, file_hdr->c_filesize);

Return to:

Send suggestions and report system problems to the System administrator.