+2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
+
+ Replace stpcpy with grub_stpcpy in tools.
+
2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
Handle Japanese special keys.
char *ptr;
*relroot = xmalloc (strlen (entries[i].enc_root) +
2 + strlen (dir));
- ptr = stpcpy (*relroot, entries[i].enc_root);
+ ptr = grub_stpcpy (*relroot, entries[i].enc_root);
if (strlen (dir) > strlen (entries[i].enc_path))
{
while (ptr > *relroot && *(ptr - 1) == '/')
ptr--;
if (dir[strlen (entries[i].enc_path)] != '/')
*ptr++ = '/';
- ptr = stpcpy (ptr, dir + strlen (entries[i].enc_path));
+ ptr = grub_stpcpy (ptr, dir + strlen (entries[i].enc_path));
}
*ptr = 0;
}
+ strlen (entry->d_name));
destnew = xmalloc (strlen (dest) + sizeof ("/")
+ strlen (entry->d_name));
- ptr = stpcpy (srcnew, src);
+ ptr = grub_stpcpy (srcnew, src);
*ptr++ = '/';
strcpy (ptr, entry->d_name);
- ptr = stpcpy (destnew, dest);
+ ptr = grub_stpcpy (destnew, dest);
*ptr++ = '/';
strcpy (ptr, entry->d_name);
{
char *tmp = xmalloc (strlen (ofpath) + sizeof ("ieee1275/"));
char *p;
- p = stpcpy (tmp, "ieee1275/");
+ p = grub_stpcpy (tmp, "ieee1275/");
strcpy (p, ofpath);
printf ("--hint-ieee1275='");
print_full_name (tmp, dev);
{
char *tmp = xmalloc (strlen (ofpath) + sizeof ("ieee1275/"));
char *p;
- p = stpcpy (tmp, "ieee1275/");
+ p = grub_stpcpy (tmp, "ieee1275/");
strcpy (p, ofpath);
print_full_name (tmp, dev);
free (tmp);