summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-09-01 02:53:53 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-09-01 02:53:53 +0000
commit264c52f2e6abc33f09e6a891f67bdf7bddbae406 (patch)
tree241a384494c8b7c8a423040a46372af505d97d9d /string.c
parentde11b8dc8a567f0dcb3961d4e712d63df97eaabb (diff)
euc-kana
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index d85a9dfdd52..f379f0291ae 100644
--- a/string.c
+++ b/string.c
@@ -1466,7 +1466,7 @@ str_inspect(str)
else {
CHECK(4);
*b++ = '\\';
- sprintf(b, "%03o", c);
+ sprintf(b, "%03o", c & 0377);
b += 3;
}
}