X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/729e4ab9bc6618bc3d8a898e575df7f4019e29ca..08b89b0a244153b9f5bbb2f49c55ab0f7298122e:/icuSources/tools/makeconv/makeconv.c?ds=sidebyside diff --git a/icuSources/tools/makeconv/makeconv.c b/icuSources/tools/makeconv/makeconv.c index ea1e442f..424c9622 100644 --- a/icuSources/tools/makeconv/makeconv.c +++ b/icuSources/tools/makeconv/makeconv.c @@ -1,7 +1,7 @@ /* ******************************************************************************** * - * Copyright (C) 1998-2010, International Business Machines + * Copyright (C) 1998-2012, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************** @@ -245,7 +245,7 @@ int main(int argc, char* argv[]) } 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); @@ -293,7 +293,7 @@ int main(int argc, char* argv[]) 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; @@ -433,7 +433,7 @@ readHeader(ConvData *data, FileStream* convFile, const char* converterName, UErrorCode *pErrorCode) { - char line[200]; + char line[1024]; char *s, *key, *value; const UConverterStaticData *prototype; UConverterStaticData *staticData; @@ -560,7 +560,7 @@ readHeader(ConvData *data, static UBool readFile(ConvData *data, const char* converterName, UErrorCode *pErrorCode) { - char line[200]; + char line[1024]; char *end; FileStream *convFile;