2
0

Replace ftl by err.

This commit is contained in:
Maarten Billemont 2017-07-22 23:46:53 -04:00
parent 16004f2ffe
commit 4103c6e659

View File

@ -378,8 +378,10 @@ MPMarshalledUser *mpw_marshall_read_flat(
importKeyID = strdup( headerValue );
if (strcmp( headerName, "Algorithm" ) == 0) {
int importAlgorithmInt = atoi( headerValue );
if (importAlgorithmInt < MPAlgorithmVersionFirst || importAlgorithmInt > MPAlgorithmVersionLast)
ftl( "Invalid algorithm version: %s\n", headerValue );
if (importAlgorithmInt < MPAlgorithmVersionFirst || importAlgorithmInt > MPAlgorithmVersionLast) {
err( "Invalid algorithm version: %s\n", headerValue );
return false;
}
importAlgorithm = (MPAlgorithmVersion)importAlgorithmInt;
}
if (strcmp( headerName, "Default Type" ) == 0)