[BACK]Return to passwd.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / openssl

Diff for /src/usr.bin/openssl/passwd.c between version 1.10 and 1.11

version 1.10, 2019/07/14 03:30:46 version 1.11, 2021/11/25 16:53:58
Line 449 
Line 449 
         /* truncate password if necessary */          /* truncate password if necessary */
         if ((strlen(passwd) > pw_maxlen)) {          if ((strlen(passwd) > pw_maxlen)) {
                 if (!quiet)                  if (!quiet)
                         /*                          BIO_printf(bio_err,
                          * XXX: really we should know how to print a size_t,                              "Warning: truncating password to %zu characters\n",
                          * not cast it                              pw_maxlen);
                          */  
                         BIO_printf(bio_err, "Warning: truncating password to %u characters\n", (unsigned) pw_maxlen);  
                 passwd[pw_maxlen] = 0;                  passwd[pw_maxlen] = 0;
         }          }
         assert(strlen(passwd) <= pw_maxlen);          assert(strlen(passwd) <= pw_maxlen);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11