Changeset 16774 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Feb 15, 2009 4:23:47 AM (16 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/base64.cpp
r16766 r16774 423 423 424 424 cch += (cch / RTBASE64_LINE_LEN) * RTBASE64_EOL_SIZE; 425 cch -= (cch % RTBASE64_LINE_LEN) == 0; 425 426 return cch; 426 427 } … … 432 433 433 434 cch += (cch / RTBASE64_LINE_LEN) * RTBASE64_EOL_SIZE; 435 cch -= (cch % RTBASE64_LINE_LEN) == 0; 434 436 return cch; 435 437 } … … 485 487 pbSrc += 3; 486 488 487 if (cbBuf == cbLineFeed) 489 /* deal out linefeeds */ 490 if (cbBuf == cbLineFeed && cbData) 488 491 { 489 492 if (cbBuf < RTBASE64_EOL_SIZE + 1) -
trunk/src/VBox/Runtime/testcase/tstBase64.cpp
r16773 r16774 128 128 { 129 129 RTPrintf("tstBase64: FAILURE - %s: RTBase64EncodedLength returned %zu bytes, expected %zu.\n", 130 szTest, cchOut , cchOut2);130 szTest, cchOut2, cchOut); 131 131 g_cErrors++; 132 132 } … … 284 284 "9P/0//T/9AD0APQA9f/1//X/9QD1APUA9v/2//b/9gD2APYA9//3//f/9wD3APcA" MY_NL 285 285 "+P/4//j/+AD4APgA+f/5//n/+QD5APkA+v/6//r/+gD6APoA+//7//v/+wD7APsA" MY_NL 286 "/P/8//z//AD8APwA/f/9//3//QD9AP0A/v/+//7//gD+AP4A/////////wD/AP8A" MY_NL;286 "/P/8//z//AD8APwA/f/9//3//QD9AP0A/v/+//7//gD+AP4A/////////wD/AP8A"; 287 287 288 288 tstBase64(s_abData3, sizeof(s_abData3),
Note:
See TracChangeset
for help on using the changeset viewer.