ICU-900 Fixed some compiler warnings.
X-SVN-Rev: 6344
This commit is contained in:
parent
a1865ea6b8
commit
ef3783ce53
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user