diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-12-02 11:33:29 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-12-02 11:33:29 +0200 |
commit | 58df4f1b44a1142bba500f980fd26806413b1728 (patch) | |
tree | b7c401f4fdbbab5308304378967e3eab69b7c2b0 | |
parent | 54d1c42ac2cb91389fca04a5018ad573e4ae265a (diff) | |
download | cpio-58df4f1b44a1142bba500f980fd26806413b1728.tar.gz cpio-58df4f1b44a1142bba500f980fd26806413b1728.tar.bz2 |
Fix typo
-rw-r--r-- | src/copyin.c | 2 |
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) | |||
138 | } | 138 | } |
139 | else | 139 | else |
140 | { | 140 | { |
141 | link_name = xmalloc (file_hdr->c_filesize); | 141 | link_name = xmalloc (file_hdr->c_filesize + 1); |
142 | tape_buffered_read (link_name, in_file_des, file_hdr->c_filesize); | 142 | tape_buffered_read (link_name, in_file_des, file_hdr->c_filesize); |
143 | link_name[file_hdr->c_filesize] = '\0'; | 143 | link_name[file_hdr->c_filesize] = '\0'; |
144 | tape_skip_padding (in_file_des, file_hdr->c_filesize); | 144 | tape_skip_padding (in_file_des, file_hdr->c_filesize); |