Skip to content

Commit 99a382b

Browse files
committed
Bugfix
1 parent 996c8c8 commit 99a382b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ColorSetKit/ColorSetStream.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ - ( nullable NSString * )readString
150150

151151
@synchronized( self )
152152
{
153-
if( [ self read: 8 in: &n ] && n > 0 )
153+
if( [ self read: 8 in: &n ] && n > 1 )
154154
{
155-
if( ( data = [ self readDataOfLength: n ] ) )
155+
if( ( data = [ self readDataOfLength: n - 1 ] ) )
156156
{
157157
return [ [ NSString alloc ] initWithData: data encoding: NSASCIIStringEncoding ];
158158
}

0 commit comments

Comments
 (0)