ICU-2135 fix typo more error checking

X-SVN-Rev: 10492
This commit is contained in:
Ram Viswanadha 2002-12-05 02:36:34 +00:00
parent ae5e2c31b0
commit 7f6d1590f3

View file

@ -461,7 +461,7 @@ struct SResource *string_open(struct SRBRoot *bundle, char *tag, UChar *value, i
}
uprv_memcpy(res->u.fString.fChars, value, sizeof(UChar) * (len + 1));
res->fSize = sizeof(int32_t) + sizeof(UChar) * (len);
res->fSize = sizeof(int32_t) + sizeof(UChar) * (len+1);
return res;
}