Searched refs:add_slash (Results 1 - 2 of 2) sorted by relevance

/osnet-11/usr/src/lib/libparted/common/lib/
H A Dlocalcharset.c143 int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); local
144 file_name = (char *) malloc (dir_len + add_slash + base_len + 1);
148 if (add_slash)
150 memcpy (file_name + dir_len + add_slash, base, base_len + 1);
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dlocalcharset.c141 int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); local
142 file_name = (char *) malloc (dir_len + add_slash + base_len + 1);
146 if (add_slash)
148 memcpy (file_name + dir_len + add_slash, base, base_len + 1);

Completed in 22 milliseconds