ruby-changes:46912
From: nobu <ko1@a...>
Date: Tue, 6 Jun 2017 21:30:24 +0900 (JST)
Subject: [ruby-changes:46912] nobu:r59027 (trunk): debug.c: fix breaking condtions
nobu 2017-06-06 21:30:17 +0900 (Tue, 06 Jun 2017) New Revision: 59027 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59027 Log: debug.c: fix breaking condtions Modified files: trunk/debug.c Index: debug.c =================================================================== --- debug.c (revision 59026) +++ debug.c (revision 59027) @@ -154,10 +154,9 @@ set_debug_option(const char *str, int le https://github.com/ruby/ruby/blob/trunk/debug.c#L154 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; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/