Print this page
5218 posix definition of NULL
correct unistd.h and iso/stddef_iso.h
update gate source affected

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/bnu/getprm.c
          +++ new/usr/src/cmd/bnu/getprm.c
↓ open down ↓ 227 lines elided ↑ open up ↑
 228  228              continue;
 229  229  
 230  230          (void) wcsncpy(tmpbuf, n, cl-n);
 231  231          tmpbuf[cl-n] = NULLCHAR;
 232  232          (void) wcstombs(sys, tmpbuf, MAXFULLNAME);
 233  233  
 234  234          if (fwd != (char *) NULL) {
 235  235              if (cl != (cr = wcsrchr(n, (wchar_t)'!'))) {
 236  236                  /*  more than one ! */
 237  237                  wcsncpy(tmpbuf, cl+1, cr-cl-1);
 238      -                tmpbuf[cr-cl-1] = NULL;
      238 +                tmpbuf[cr-cl-1] = L'\0';
 239  239                  (void) wcstombs(fwd, tmpbuf, MAXFULLNAME);
 240  240              }
 241  241          } else {
 242  242              cr = cl;
 243  243          }
 244  244  
 245  245          (void) wcstombs(file, cr+1, MAXFULLNAME);
 246  246          return(retval);
 247  247      }
 248  248      /*NOTREACHED*/
 249  249  }
 250  250  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX