Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
Fixed potential crash
Browse files Browse the repository at this point in the history
  • Loading branch information
swisspol committed Jan 12, 2015
1 parent 61de812 commit b7515df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GCDTelnetServer/GCDTelnetConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ - (NSData*)_sendIACBuffer:(const unsigned char*)buffer length:(NSUInteger)length
_LOG_DEBUG_CHECK(buffer[0] == kTelnetCommand_IAC);

if (![self writeBuffer:buffer length:length withTimeout:kSynchronousCommunicationTimeout]) {
_LOG_ERROR(@"Failed sending Telnet command: %@", _StringFromIACBuffer(buffer, sizeof(buffer)));
_LOG_ERROR(@"Failed sending Telnet command: %@", _StringFromIACBuffer(buffer, length));
return nil;
}
_LOG_DEBUG(@"Telnet IAC (->) %@", _StringFromIACBuffer(buffer, length));
Expand Down

0 comments on commit b7515df

Please sign in to comment.