[BACK]Return to strfmon.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / stdlib

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/stdlib/strfmon.c between version 1.12 and 1.13

version 1.12, 2017/11/27 22:43:07 version 1.13, 2017/11/27 23:54:28
Line 556  __format_grouped_double(struct lconv *lc
Line 556  __format_grouped_double(struct lconv *lc
   
         /* make sure that we've enough space for result string */          /* make sure that we've enough space for result string */
         bufsize = avalue_size * 2 + 1;          bufsize = avalue_size * 2 + 1;
         rslt = malloc(bufsize);          rslt = calloc(1, bufsize);
         if (rslt == NULL) {          if (rslt == NULL) {
                 free(avalue);                  free(avalue);
                 return (NULL);                  return (NULL);
         }          }
         memset(rslt, 0, bufsize);  
         bufend = rslt + bufsize - 1;    /* reserve space for trailing '\0' */          bufend = rslt + bufsize - 1;    /* reserve space for trailing '\0' */
   
         /* skip spaces at beggining */          /* skip spaces at beggining */

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

CVSweb <webmaster@jp.NetBSD.org>