public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Use %ms instead of %as in localedef
@ 2007-09-18 19:06 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2007-09-18 19:06 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Glibc hackers

Hi!

With recent enough gcc there won't be warnings about the fscanf arguments...

2007-09-18  Jakub Jelinek  <jakub@redhat.com>

	* locale/programs/charmap-dir.c (charmap_aliases): Use %ms instead of
	%as in fscanf format strings.

--- libc/locale/programs/charmap-dir.c.jj	2007-07-16 09:58:46.000000000 +0200
+++ libc/locale/programs/charmap-dir.c	2007-09-18 19:37:16.000000000 +0200
@@ -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, 
       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 *));

	Jakub

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-18 19:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-18 19:06 [PATCH] Use %ms instead of %as in localedef Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).