VirtualBox

Ignore:
Timestamp:
Feb 14, 2009 9:33:15 AM (16 years ago)
Author:
vboxsync
Message:

Wrote RTBase64Encode while at it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstBase64.cpp

    r16766 r16767  
    5757
    5858    /*
    59      * Test 0.
     59     * Series of simple tests.
    6060     */
    6161    static const struct
     
    115115        }
    116116
    117         rc = RTBase64Encode(g_aTests[i].pszText, g_aTests[i].cchText, szOut, g_aTests[i].cchEnc*2 + 1, &cchOut);
     117        rc = RTBase64Encode(g_aTests[i].pszText, g_aTests[i].cchText, szOut, g_aTests[i].cchEnc + 1, &cchOut);
    118118        if (RT_FAILURE(rc))
    119119        {
     
    142142        }
    143143
     144        /** @todo negative testing. */
    144145    }
    145146
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