diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-06 12:30:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-06 12:30:17 +0000 |
commit | 95af3295cc6804e0c44f50f50b1aedf5d0c5ffcf (patch) | |
tree | a52048beb640dbc83b8642922ba352365c1a26b3 /debug.c | |
parent | 267323cad5ca4888dae11c9e08ccef175f7d72c7 (diff) | |
download | ruby-95af3295cc6804e0c44f50f50b1aedf5d0c5ffcf.tar.gz |
debug.c: fix breaking condtions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -154,10 +154,9 @@ set_debug_option(const char *str, int len, void *arg) if (!ov && retlen) { ruby_w32_codepage[i] = (UINT)n; } - if ((size_t)len <= retlen) break; str += retlen; len -= retlen; - if (*str != ':') break; + if (!len || *str != ':') break; ++str; --len; } |