]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/tools/toolutil/package.cpp
ICU-62107.0.1.tar.gz
[apple/icu.git] / icuSources / 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);