about summary refs log tree commit diff
path: root/intl/localealias.c
diff options
context:
space:
mode:
Diffstat (limited to 'intl/localealias.c')
-rw-r--r--intl/localealias.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/intl/localealias.c b/intl/localealias.c
index 57c693dcde..426db49b97 100644
--- a/intl/localealias.c
+++ b/intl/localealias.c
@@ -351,6 +351,18 @@ read_alias_file (fname, fname_len)
 		      FREE_BLOCKS (block_list);
 		      return added;
 		    }
+
+		  if (__builtin_expect (string_space != new_pool, 0))
+		    {
+		      size_t i;
+
+		      for (i = 0; i < nmap; i++)
+			{
+			  map[i].alias += new_pool - string_space;
+			  map[i].value += new_pool - string_space;
+			}
+		    }
+
 		  string_space = new_pool;
 		  string_space_max = new_size;
 		}