Skip to content

Commit

Permalink
nsclick: Correct offset when parsing serialized defines.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Alexander Jopen committed Sep 11, 2013
1 parent d3db650 commit aafbbc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ns/nsclick.cc
Expand Up @@ -135,7 +135,7 @@ int simclick_click_create(simclick_node_t *simnode, const char* router_file) {
while (defines_offset < defines_size) {
char *key = defines + defines_offset;
char *value = key + strlen(key) + 1;
defines_offset += (size_t) (value + strlen(value) + 1 - defines);
defines_offset = (size_t) (value + strlen(value) + 1 - defines);
if (!click_lexer()->global_scope().define(key, value, false)) {
errh->error("parameter %s multiply defined", key);
}
Expand Down

0 comments on commit aafbbc4

Please sign in to comment.