소스 검색

* don't index past the end of the transitions array (mantis #30829)

git-svn-id: trunk@34775 -
Jonas Maebe 8 년 전
부모
커밋
85f2903b8b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rtl/unix/timezone.inc

+ 1 - 1
rtl/unix/timezone.inc

@@ -55,7 +55,7 @@ begin
    end
   else
    begin
-     for i:=1 to num_transitions do
+     for i:=1 to num_transitions-1 do
       if (timer<transitions[i]) then
        break;
      i:=type_idxs[i-1];