fix a base64 parsing problem in v-cards, r=sspitzer, sr=dveditz, 339740

This commit is contained in:
bienvenu%nventure.com 2006-06-15 15:24:47 +00:00
parent c4c823f375
commit a38acad4f0

View File

@ -934,7 +934,7 @@ static char * lexGetDataFromBase64()
b = 62;
else if (c == '/')
b = 63;
else if (c == '=') {
else if (c == '=' && (quadIx == 2 || quadIx == 3)) {
b = 0;
pad++;
} else if ((c == ' ') || (c == '\t')) {
@ -989,6 +989,7 @@ static char * lexGetDataFromBase64()
}
trip = 0;
quadIx = 0;
pad = 0;
}
}
} /* while */