summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorTakashi Sogabe <[email protected]>2012-12-05 16:15:55 +0900
committerTakashi Sogabe <[email protected]>2012-12-05 16:26:46 +0900
commit7127bded17eb2a5b66077b25238c1f7b0f72e605 (patch)
treef1dd4b53c97c31c86f2bfd2d5076912b4f39df88 /src
parentb8e5a570479a2e45d8746d85df15f84b619466d6 (diff)
downloadmruby-7127bded17eb2a5b66077b25238c1f7b0f72e605.tar.gz
mruby-7127bded17eb2a5b66077b25238c1f7b0f72e605.zip
Fix out of boundary scan in case of octal formatted string
This patch fixes a side effect of #2e7953536e
Diffstat (limited to 'src')
-rw-r--r--src/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index 19e6bf23e..7ecdbab85 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -3316,7 +3316,7 @@ read_escape(parser_state *p)
break;
}
}
- c = scan_oct(buf, i+1, &i);
+ c = scan_oct(buf, i, &i);
}
return c;