diff options
Diffstat (limited to '')
| -rw-r--r-- | src/stable/formatter.cpp | 2 | ||||
| -rw-r--r-- | src/stable/stream.cpp | 4 | 
2 files changed, 5 insertions, 1 deletions
| diff --git a/src/stable/formatter.cpp b/src/stable/formatter.cpp index a757921..f8da5a1 100644 --- a/src/stable/formatter.cpp +++ b/src/stable/formatter.cpp | |||
| @@ -80,6 +80,8 @@ void Bu::Formatter::write( const void *sStr, int iLen ) | |||
| 80 | void Bu::Formatter::writeAligned( const Bu::String &sStr ) | 80 | void Bu::Formatter::writeAligned( const Bu::String &sStr ) | 
| 81 | { | 81 | { | 
| 82 | int iLen = sStr.getSize(); | 82 | int iLen = sStr.getSize(); | 
| 83 | if( iLen == 0 ) | ||
| 84 | return; | ||
| 83 | if( iLen > fLast.uMinWidth ) | 85 | if( iLen > fLast.uMinWidth ) | 
| 84 | { | 86 | { | 
| 85 | write( sStr ); | 87 | write( sStr ); | 
| diff --git a/src/stable/stream.cpp b/src/stable/stream.cpp index 2ae03d4..1b3555d 100644 --- a/src/stable/stream.cpp +++ b/src/stable/stream.cpp | |||
| @@ -48,6 +48,8 @@ Bu::String Bu::Stream::readAll() | |||
| 48 | 48 | ||
| 49 | Bu::size Bu::Stream::write( const Bu::String &sBuf ) | 49 | Bu::size Bu::Stream::write( const Bu::String &sBuf ) | 
| 50 | { | 50 | { | 
| 51 | return write( sBuf.getStr(), sBuf.getSize() ); | 51 | if( sBuf.getSize() > 0 ) | 
| 52 | return write( sBuf.getStr(), sBuf.getSize() ); | ||
| 53 | return 0; | ||
| 52 | } | 54 | } | 
| 53 | 55 | ||
