~ubuntu-branches/ubuntu/trusty/gnutls26/trusty-security

« back to all changes in this revision

Viewing changes to gl/strerror.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2010-04-22 19:29:52 UTC
  • mto: (12.4.3 experimental) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20100422192952-gbj6cvaan8e4ejck
Tags: upstream-2.9.10
ImportĀ upstreamĀ versionĀ 2.9.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* strerror.c --- POSIX compatible system error routine
2
2
 
3
 
   Copyright (C) 2007-2009 Free Software Foundation, Inc.
 
3
   Copyright (C) 2007-2010 Free Software Foundation, Inc.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
334
334
 
335
335
    if (result == NULL || result[0] == '\0')
336
336
      {
337
 
        static char const fmt[] = "Unknown error (%d)";
338
 
        static char msg_buf[sizeof fmt + INT_STRLEN_BOUND (n)];
339
 
        sprintf (msg_buf, fmt, n);
340
 
        return msg_buf;
 
337
        static char const fmt[] = "Unknown error (%d)";
 
338
        static char msg_buf[sizeof fmt + INT_STRLEN_BOUND (n)];
 
339
        sprintf (msg_buf, fmt, n);
 
340
        return msg_buf;
341
341
      }
342
342
 
343
343
    return result;