Permalink
Browse files

fixed an off-by-one error in parsing of zeromq [group:]command messages

  • Loading branch information...
1 parent eb89738 commit 14f18a2881df79094da26e699c42ce0244107a88 @kobolog kobolog 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 14f18a2

Please sign in to comment.