From f84f4aa6b375290386c0456ac02fe8f6cc2cdd2d Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 16 May 2001 09:05:54 +0000 Subject: * array.c (rb_ary_and): should not push frozen key string. * array.c (rb_ary_or): ditto. * eval.c (rb_thread_schedule): should save context before raising deadlock, saved context for current thread might be obsolete. * time.c (make_time_t): non DST timezone shift supported (hopefully). * time.c (make_time_t): strict range detection for negative time_t. * signal.c: SIGINFO added. * eval.c (rb_ensure): should not SEGV when prot_tag is NULL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index a49b244756..f53d7a1ca1 100644 --- a/dir.c +++ b/dir.c @@ -598,8 +598,7 @@ remove_backslashes(p) while (p < pend) { if (*p == '\\') { - *p++; - if (p == pend) break; + if (++p == pend) break; } *t++ = *p++; } -- cgit v1.2.3