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


 339                                         }
 340                                         break;
 341                                 }
 342                                 ibp += 4;
 343                                 obp += 3;
 344                                 octets -= 3;
 345                         }
 346                         /*
 347                          * Only write out uncorrupted lines
 348                          */
 349                         if (octets <= 0) {
 350                                 (void) fwrite(inbuf, n, 1, out);
 351                         }
 352                 }
 353         } else {        /* use base64 algorithm */
 354                 endseen = numbase64chars = 0;
 355                 optr = outbuf;
 356                 while ((fgets(inbuf, sizeof (inbuf), in)) != NULL) {
 357                         /* process an input line */
 358                         iptr = inbuf;
 359                         while ((curchr = *(iptr++)) != NULL) {
 360                                 /* decode chars */
 361                                 if (curchr == '=') /* if end */
 362                                         endseen++;
 363 
 364                                 if (validbase64(curchr))
 365                                         chr[numbase64chars++] = curchr;
 366                                 /*
 367                                  * if we've gathered 4 base64 octets
 368                                  * we need to decode and output them
 369                                  */
 370                                 if (numbase64chars == 4) {
 371                                         /*LINTED*/
 372                                         if (optr - outbuf > BUFSIZE - 3) {
 373                                                 (void) fwrite(outbuf,
 374                                                     /*LINTED*/
 375                                                     (size_t)(optr - outbuf),
 376                                                     1, out);
 377                                                 if (ferror(out)) {
 378                                                         perror(prog);
 379                                                         exit(6);




 339                                         }
 340                                         break;
 341                                 }
 342                                 ibp += 4;
 343                                 obp += 3;
 344                                 octets -= 3;
 345                         }
 346                         /*
 347                          * Only write out uncorrupted lines
 348                          */
 349                         if (octets <= 0) {
 350                                 (void) fwrite(inbuf, n, 1, out);
 351                         }
 352                 }
 353         } else {        /* use base64 algorithm */
 354                 endseen = numbase64chars = 0;
 355                 optr = outbuf;
 356                 while ((fgets(inbuf, sizeof (inbuf), in)) != NULL) {
 357                         /* process an input line */
 358                         iptr = inbuf;
 359                         while ((curchr = *(iptr++)) != '\0') {
 360                                 /* decode chars */
 361                                 if (curchr == '=') /* if end */
 362                                         endseen++;
 363 
 364                                 if (validbase64(curchr))
 365                                         chr[numbase64chars++] = curchr;
 366                                 /*
 367                                  * if we've gathered 4 base64 octets
 368                                  * we need to decode and output them
 369                                  */
 370                                 if (numbase64chars == 4) {
 371                                         /*LINTED*/
 372                                         if (optr - outbuf > BUFSIZE - 3) {
 373                                                 (void) fwrite(outbuf,
 374                                                     /*LINTED*/
 375                                                     (size_t)(optr - outbuf),
 376                                                     1, out);
 377                                                 if (ferror(out)) {
 378                                                         perror(prog);
 379                                                         exit(6);