/[cvs]/ccvs/lib/quotearg.c
ViewVC logotype

Diff of /ccvs/lib/quotearg.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by dprice, Mon Sep 19 21:26:13 2005 UTC revision 1.5 by dprice, Tue Oct 4 02:34:54 2005 UTC
# Line 586  quotearg_n_options (int n, char const *a Line 586  quotearg_n_options (int n, char const *a
586    
587    if (nslots <= n0)    if (nslots <= n0)
588      {      {
589        unsigned int n1 = n0 + 1;        /* FIXME: technically, the type of n1 should be `unsigned int',
590             but that evokes an unsuppressible warning from gcc-4.0.1 and
591             older.  If gcc ever provides an option to suppress that warning,
592             revert to the original type, so that the test in xalloc_oversized
593             is once again performed only at compile time.  */
594          size_t n1 = n0 + 1;
595    
596        if (xalloc_oversized (n1, sizeof *slotvec))        if (xalloc_oversized (n1, sizeof *slotvec))
597          xalloc_die ();          xalloc_die ();

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26