]> git.proxmox.com Git - grub2.git/commitdiff
* grub-core/net/net.c (grub_net_addr_to_str): Don't translate
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 8 Mar 2012 17:51:39 +0000 (18:51 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 8 Mar 2012 17:51:39 +0000 (18:51 +0100)
"temporary" since it's used in identifier and is limited in space.

ChangeLog
grub-core/net/net.c

index d3d0a61e633181be3bbcdd39673de38a18c2d7c9..b0bed2c37d7dc369ac8742896f2eaf2cbb773153 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-08  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
+       "temporary" since it's used in identifier and is limited in space.
+
 2012-03-08  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * po/POTFILES.in: Regenerate. Include *.h since they contain
index f1db815607728832311eaff7861ae2c3b2b6b4b1..6dbb88edef1fcbbc8faa5af5057c25bce0d96ff0 100644 (file)
@@ -684,7 +684,7 @@ grub_net_addr_to_str (const grub_net_network_level_address_t *target, char *buf)
     {
     case GRUB_NET_NETWORK_LEVEL_PROTOCOL_DHCP_RECV:
       /* TRANSLATORS: it refers to the network address.  */
-      grub_strcpy (buf, _("temporary"));
+      grub_strncpy (buf, "temporary", GRUB_NET_MAX_STR_ADDR_LEN);
       return;
     case GRUB_NET_NETWORK_LEVEL_PROTOCOL_IPV6:
       {