mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
Replace stpcpy with grub_stpcpy in tools.
This commit is contained in:
1 parent
bbdd6305db
commit
ba44ca6d1a
4 files changed
+10
-6
No files matched your search
+2
-2
@@ -289,10 +289,10 @@ cmd_cmp (char *src, char *dest)
|
||||
+ 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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user