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/uudecode.c
          +++ new/usr/src/cmd/bnu/uudecode.c
↓ open down ↓ 348 lines elided ↑ open up ↑
 349  349                          if (octets <= 0) {
 350  350                                  (void) fwrite(inbuf, n, 1, out);
 351  351                          }
 352  352                  }
 353  353          } else {        /* use base64 algorithm */
 354  354                  endseen = numbase64chars = 0;
 355  355                  optr = outbuf;
 356  356                  while ((fgets(inbuf, sizeof (inbuf), in)) != NULL) {
 357  357                          /* process an input line */
 358  358                          iptr = inbuf;
 359      -                        while ((curchr = *(iptr++)) != NULL) {
      359 +                        while ((curchr = *(iptr++)) != '\0') {
 360  360                                  /* decode chars */
 361  361                                  if (curchr == '=') /* if end */
 362  362                                          endseen++;
 363  363  
 364  364                                  if (validbase64(curchr))
 365  365                                          chr[numbase64chars++] = curchr;
 366  366                                  /*
 367  367                                   * if we've gathered 4 base64 octets
 368  368                                   * we need to decode and output them
 369  369                                   */
↓ open down ↓ 171 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX