We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 996c8c8 commit 99a382bCopy full SHA for 99a382b
ColorSetKit/ColorSetStream.m
@@ -150,9 +150,9 @@ - ( nullable NSString * )readString
150
151
@synchronized( self )
152
{
153
- if( [ self read: 8 in: &n ] && n > 0 )
+ if( [ self read: 8 in: &n ] && n > 1 )
154
155
- if( ( data = [ self readDataOfLength: n ] ) )
+ if( ( data = [ self readDataOfLength: n - 1 ] ) )
156
157
return [ [ NSString alloc ] initWithData: data encoding: NSASCIIStringEncoding ];
158
}
0 commit comments