# --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../cpio/fix_symlinks.patch # Copyright (C) 2007 The OpenSDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- SDE-COPYRIGHT-NOTE-END --- =================================================================== RCS file: /sources/cpio/cpio/src/copyout.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- cpio/src/copyout.c 2006/09/27 09:28:50 1.19 +++ cpio/src/copyout.c 2006/10/24 10:48:04 1.20 @@ -806,6 +806,7 @@ free (link_name); continue; } + link_name[link_size] = 0; cpio_safer_name_suffix (link_name, false, !no_abs_paths_flag, true); link_size = strlen (link_name);