diff src/readpst.c @ 380:1e1970f93f94 stable-0-6-72

allow all 7 days in bydays recurring appointment, update for fedora python packaging
author Carl Byington <carl@five-ten-sg.com>
date Wed, 01 Aug 2018 08:15:34 -0700
parents 0ccc746c8079
children 5c0ce43c7532
line wrap: on
line diff
--- a/src/readpst.c	Thu Dec 07 08:51:09 2017 -0800
+++ b/src/readpst.c	Wed Aug 01 08:15:34 2018 -0700
@@ -1160,10 +1160,10 @@
     int count = 0;
     char *curr = inp;
     while (*curr) {
-        *curr++;
         if (*curr == '\"' || *curr == '\\') {
             count++;
         }
+        curr++;
         i++;
     }
     char *res = malloc(i + count + 1);
@@ -2135,7 +2135,7 @@
                 int  empty = 1;
                 int i=0;
                 memset(byday, 0, sizeof(byday));
-                for (i=0; i<6; i++) {
+                for (i=0; i<7; i++) {
                     int bit = 1 << i;
                     if (bit & rdata->bydaymask) {
                         char temp[40];