/*
********************************************************************************
*
- * Copyright (C) 1998-2010, International Business Machines
+ * Copyright (C) 1998-2012, International Business Machines
* Corporation and others. All Rights Reserved.
*
********************************************************************************
}
if(options[OPT_VERSION].doesOccur) {
- printf("makeconv version %hu.%hu, ICU tool to read .ucm codepage mapping files and write .cnv files\n",
+ printf("makeconv version %u.%u, ICU tool to read .ucm codepage mapping files and write .cnv files\n",
dataInfo.formatVersion[0], dataInfo.formatVersion[1]);
printf("%s\n", U_COPYRIGHT_STRING);
exit(0);
arg = getLongPathname(*argv);
/* Check for potential buffer overflow */
- if(strlen(arg) > UCNV_MAX_FULL_FILE_NAME_LENGTH)
+ if(strlen(arg) >= UCNV_MAX_FULL_FILE_NAME_LENGTH)
{
fprintf(stderr, "%s\n", u_errorName(U_BUFFER_OVERFLOW_ERROR));
return U_BUFFER_OVERFLOW_ERROR;
FileStream* convFile,
const char* converterName,
UErrorCode *pErrorCode) {
- char line[200];
+ char line[1024];
char *s, *key, *value;
const UConverterStaticData *prototype;
UConverterStaticData *staticData;
static UBool
readFile(ConvData *data, const char* converterName,
UErrorCode *pErrorCode) {
- char line[200];
+ char line[1024];
char *end;
FileStream *convFile;