Permalink
Browse files

Merge pull request #5 from Kobolog/master

Fixed an off-by-one error in parsing of zeromq [group:]command messages.
  • Loading branch information...
2 parents eb89738 + 14f18a2 commit 844e2cc49340c76beaa77aa2d3f921b0aab3aadd @unbit committed Oct 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/zmq.c
View
@@ -40,7 +40,7 @@ extern http_parser_settings bb_http_response_parser_settings;
static char *bb_get_route(char *buf, size_t len, size_t *rlen) {
while(len>0) {
- if (buf[len--] == ':') {
+ if (buf[--len] == ':') {
*rlen = len+1;
return buf;
}

0 comments on commit 844e2cc

Please sign in to comment.