[evolution-ews] Adjust the loop length to the table size in weekindex_to_ical()



commit 813ab54ded82cee4ed80523de721760a56f2dcad
Author: Or Goshen <orx goshen intel com>
Date:   Thu Jul 7 11:50:07 2011 +0300

    Adjust the loop length to the table size in weekindex_to_ical()

 src/calendar/e-cal-backend-ews-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews-utils.c b/src/calendar/e-cal-backend-ews-utils.c
index 7c694d0..b6a8bac 100644
--- a/src/calendar/e-cal-backend-ews-utils.c
+++ b/src/calendar/e-cal-backend-ews-utils.c
@@ -155,7 +155,7 @@ static const char *weekindex_to_ical(int index) {
 	};
 	int i;
 
-	for (i = 0; i < 5; i++) {
+	for (i = 0; i < 6; i++) {
 		if (index == table[i].index)
 				return table[i].exch;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]