VirtualBox

Ignore:
Timestamp:
Oct 19, 2010 1:23:02 PM (14 years ago)
Author:
vboxsync
Message:

DIGEST_LEN, not STRING_LEN as the terminator is not included

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/auth/simple/VBoxAuthSimple.cpp

    r33228 r33229  
    113113            uint8_t abDigest[RTSHA256_HASH_SIZE];
    114114            RTSha256(szPassword, strlen(szPassword), abDigest);
    115             char pszDigest[RTSHA256_STRING_LEN + 1];
     115            char pszDigest[RTSHA256_DIGEST_LEN + 1];
    116116            RTSha256ToString(abDigest, pszDigest, sizeof(pszDigest));
    117117                       
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette