ICU-900 Fixed some compiler warnings.

X-SVN-Rev: 6344
This commit is contained in:
George Rhoten 2001-10-19 22:01:16 +00:00
parent a1865ea6b8
commit ef3783ce53

View File

@ -320,7 +320,7 @@ parseResourceType(UErrorCode *status)
} else {
char tokenBuffer[1024];
u_austrncpy(tokenBuffer, tokenValue->fChars, sizeof(tokenBuffer));
tokenBuffer[sizeof(tokenBuffer)] = 0;
tokenBuffer[sizeof(tokenBuffer) - 1] = 0;
*status = U_INVALID_FORMAT_ERROR;
error(line, "unknown resource type '%s'", tokenBuffer);
}