Skip to content

Commit

Permalink
Use int in printf formatting
Browse files Browse the repository at this point in the history
Avoids a warning, and possibly a crash on Travis.
  • Loading branch information
camelpunch committed Mar 17, 2016
1 parent a3a6b51 commit 5a07e90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RMQClient/AMQParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ - (NSString *)parseLongString {
return @"";
} else {
self.cursor += sizeof(length);
NSString *string = [NSString stringWithFormat:@"%.*s", length, self.cursor];
int readCharsLength = length;
NSString *string = [NSString stringWithFormat:@"%.*s", readCharsLength, self.cursor];
self.cursor += length;

return string;
Expand Down

0 comments on commit 5a07e90

Please sign in to comment.