Diff for /libelwix/src/str.c between versions 1.9 and 1.9.30.2

version 1.9, 2019/01/23 13:26:28 version 1.9.30.2, 2023/03/14 22:34:05
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004 - 2019Copyright 2004 - 2023
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 286  str_Dig2Hex(ait_val_t *digz) Line 286  str_Dig2Hex(ait_val_t *digz)
   
         for (i = 0, b = AIT_GET_BUF(digz); i < AIT_LEN(digz); i++) {          for (i = 0, b = AIT_GET_BUF(digz); i < AIT_LEN(digz); i++) {
                 snprintf(szWork, sizeof szWork, "%02hhX", b[i]);                  snprintf(szWork, sizeof szWork, "%02hhX", b[i]);
                strncat(str, szWork, 2);                strcat(str, szWork);
         }          }
   
         return str;          return str;
Line 318  str_Dig2Hex2(u_char * __restrict digz, int diglen) Line 318  str_Dig2Hex2(u_char * __restrict digz, int diglen)
   
         for (i = 0, b = digz; i < diglen; i++) {          for (i = 0, b = digz; i < diglen; i++) {
                 snprintf(szWork, sizeof szWork, "%02hhX", b[i]);                  snprintf(szWork, sizeof szWork, "%02hhX", b[i]);
                strncat(str, szWork, 2);                strcat(str, szWork);
         }          }
   
         return str;          return str;

Removed from v.1.9  
changed lines
  Added in v.1.9.30.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>