]> granicus.if.org Git - icu/commitdiff
ICU-13260 Fix use of unintended variable in tools/toolutil/package.cpp
authorJeff Genovy <29107334+jefgen@users.noreply.github.com>
Wed, 28 Jun 2017 20:14:16 +0000 (20:14 +0000)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Wed, 28 Jun 2017 20:14:16 +0000 (20:14 +0000)
X-SVN-Rev: 40219

icu4c/source/tools/toolutil/package.cpp

index e3354b3524325cc8d71d1fcb10dfb28feb2d977e..d96c6dd36ddb410237e36056291cb83844d86326 100644 (file)
@@ -663,7 +663,7 @@ Package::readPackage(const char *filename) {
         // set the last item's platform type
         typeEnum=getTypeEnumForInputData(items[itemCount-1].data, items[itemCount-1].length, &errorCode);
         if(typeEnum<0 || U_FAILURE(errorCode)) {
-            fprintf(stderr, "icupkg: not an ICU data file: item \"%s\" in \"%s\"\n", items[i-1].name, filename);
+            fprintf(stderr, "icupkg: not an ICU data file: item \"%s\" in \"%s\"\n", items[itemCount-1].name, filename);
             exit(U_INVALID_FORMAT_ERROR);
         }
         items[itemCount-1].type=makeTypeLetter(typeEnum);