about summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-09-18 19:31:02 +0000
committerJakub Jelinek <jakub@redhat.com>2007-09-18 19:31:02 +0000
commit76c0bea7a329ca94035de1801be77e24beecc1fd (patch)
tree9c283e4d5860c59c0002c5f75ac0573603e6e34a /locale
parent006805680f52940d62ab57006a5ea4d4ed4238e0 (diff)
downloadglibc-76c0bea7a329ca94035de1801be77e24beecc1fd.tar.gz
glibc-76c0bea7a329ca94035de1801be77e24beecc1fd.tar.xz
glibc-76c0bea7a329ca94035de1801be77e24beecc1fd.zip
* locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
%as in fscanf format strings.
	* locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
	%as in fscanf format strings.
Diffstat (limited to 'locale')
-rw-r--r--locale/programs/charmap-dir.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/locale/programs/charmap-dir.c b/locale/programs/charmap-dir.c
index e192eddde3..776f01e78b 100644
--- a/locale/programs/charmap-dir.c
+++ b/locale/programs/charmap-dir.c
@@ -1,4 +1,5 @@
-/* Copyright (C) 2000, 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2001, 2002, 2003, 2005, 2007
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    This program is free software; you can redistribute it and/or modify
@@ -264,8 +265,8 @@ charmap_aliases (const char *directory, const char *name)
       char *alias = NULL;
       char junk[BUFSIZ];
 
-      if (fscanf (stream, " <code_set_name> %as", &alias) == 1
-          || fscanf (stream, "%% alias %as", &alias) == 1)
+      if (fscanf (stream, " <code_set_name> %ms", &alias) == 1
+          || fscanf (stream, "%% alias %ms", &alias) == 1)
         {
           aliases = (char **) xrealloc (aliases,
                                         (naliases + 2) * sizeof (char *));