X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fcclerrms.c;h=7817744dae6d7fb529ff639e18d661b0023c4559;hp=b0cafc11d36f077ec46ed0fbc2b041f0e5f7c34d;hb=8375be590a8640cd5673106bc828dd6d4711be28;hpb=97d7fdb61597302d861480d4bc7455d4bb1b08cb diff --git a/src/cclerrms.c b/src/cclerrms.c index b0cafc1..7817744 100644 --- a/src/cclerrms.c +++ b/src/cclerrms.c @@ -1,8 +1,8 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ -/** +/** * \file cclerrms.c * \brief Implements CCL error code to error string map. * @@ -30,12 +30,12 @@ static char *err_msg_array[] = { "Both left - and right truncation not supported", "Right truncation not supported", "Embedded truncation not supported", - "Single charcacter mask not supported" + "Single character mask not supported" }; const char *ccl_err_msg(int ccl_errno) { - if (ccl_errno >= 0 && + if (ccl_errno >= 0 && ccl_errno < sizeof(err_msg_array)/sizeof(*err_msg_array)) return err_msg_array[ccl_errno]; else