Adjust for CID-8007:
use strlcpy() instead of strcpy() for improved clarity, although the buffer is always wide enough [famous last words ...] git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39948 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -124,7 +124,7 @@ ICUCategoryData::_ConvertUnicodeStringToLocaleconvEntry(
|
||||
result = B_ERROR;
|
||||
break;
|
||||
}
|
||||
strcpy(destination, defaultValue);
|
||||
strlcpy(destination, defaultValue, destinationSize);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user