Skip to content

Commit

Permalink
added missing +1 to boundaries check.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Jun 20, 2012
1 parent e5c4efd commit c005e90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions agent-ini/src/quotes.cc
Expand Up @@ -65,7 +65,7 @@ string parse_dquoted_string( string::const_iterator & sit, const string::const_i
return ret;

case '\\':
if( sit == last)
if( sit +1 == last)
break;

switch( *(++sit))
Expand All @@ -75,8 +75,7 @@ string parse_dquoted_string( string::const_iterator & sit, const string::const_i
case '`':
case '$':
case '\n':
if( sit != last)
ret += *(sit++);
ret += *(sit++);
break;

default:
Expand Down

0 comments on commit c005e90

Please sign in to comment.