summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-12-25 04:35:44 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-12-25 04:35:44 +0000
commite3ae94452e6b84bd7f3c40166713f38a0585d834 (patch)
tree43142e9f6788e01e34588c46353a6a36d7e8bbd3 /pack.c
parent17a5fa1b4344199cef86c2cea4f1ba35f021593d (diff)
1.2 stable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack.c b/pack.c
index 903f5a9bc0..fe72d6ad35 100644
--- a/pack.c
+++ b/pack.c
@@ -1029,7 +1029,7 @@ pack_unpack(str, fmt)
while (s < send) {
if (*s == '=') {
if (++s == send) break;
- if (*s != '\n' && s < send - 1) {
+ if (*s != '\n') {
if ((c1 = hex2num(*s)) == -1) break;
if (++s == send) break;
if ((c2 = hex2num(*s)) == -1) break;