[BACK]Return to vfwprintf.c CVS log [TXT][DIR] Up to [local] / src / lib / libc / stdio

Diff for /src/lib/libc/stdio/vfwprintf.c between version 1.15 and 1.16

version 1.15, 2015/12/28 22:08:18 version 1.16, 2016/08/17 18:07:07
Line 49 
Line 49 
 #include <stdint.h>  #include <stdint.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
   #include <syslog.h>
 #include <unistd.h>  #include <unistd.h>
   
 #include "local.h"  #include "local.h"
Line 816 
Line 817 
                         /*FALLTHROUGH*/                          /*FALLTHROUGH*/
                 case 's':                  case 's':
                         if (flags & LONGINT) {                          if (flags & LONGINT) {
                                 if ((cp = GETARG(wchar_t *)) == NULL)                                  if ((cp = GETARG(wchar_t *)) == NULL) {
                                           struct syslog_data sdata = SYSLOG_DATA_INIT;
                                           int save_errno = errno;
   
                                           syslog_r(LOG_CRIT | LOG_CONS, &sdata,
                                               "vfwprintf \%ls NULL in \"%s\"", fmt0);
                                           errno = save_errno;
   
                                         cp = L"(null)";                                          cp = L"(null)";
                                   }
                         } else {                          } else {
                                 char *mbsarg;                                  char *mbsarg;
                                 if ((mbsarg = GETARG(char *)) == NULL)                                  if ((mbsarg = GETARG(char *)) == NULL) {
                                           struct syslog_data sdata = SYSLOG_DATA_INIT;
                                           int save_errno = errno;
   
                                           syslog_r(LOG_CRIT | LOG_CONS, &sdata,
                                               "vfwprintf \%s NULL in \"%s\"", fmt0);
                                           errno = save_errno;
   
                                         mbsarg = "(null)";                                          mbsarg = "(null)";
                                   }
                                 free(convbuf);                                  free(convbuf);
                                 convbuf = __mbsconv(mbsarg, prec);                                  convbuf = __mbsconv(mbsarg, prec);
                                 if (convbuf == NULL) {                                  if (convbuf == NULL) {

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16