Skip to content

Commit

Permalink
Fix incorrect condition of the while loop in multipart_parser_execute
Browse files Browse the repository at this point in the history
  • Loading branch information
dplusic committed May 28, 2013
1 parent 469bce8 commit d2c6e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multipart_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ size_t multipart_parser_execute(multipart_parser* p, const char *buf, size_t len
char c, cl;
int is_last = 0;

while(!is_last) {
while(i < len) {
c = buf[i];
is_last = (i == (len - 1));
switch (p->state) {
Expand Down

0 comments on commit d2c6e91

Please sign in to comment.