Exemplo n.º 1
0
void ProtocolArray::GetDefaultAvatar()
{
	ptrT tszFile(db_get_tsa(0, "ContactPhoto", "File"));
	if (tszFile)
		mir_tstrncpy(default_avatar_file, tszFile, _countof(default_avatar_file));
	else
		default_avatar_file[0] = '\0';
}
Exemplo n.º 2
0
void ProtocolArray::GetDefaultAvatar()
{
	ptrT tszFile(db_get_tsa(0, "ContactPhoto", "File"));
	if (tszFile)
		_tcsncpy_s(default_avatar_file, SIZEOF(default_avatar_file), tszFile, _TRUNCATE);
	else
		default_avatar_file[0] = '\0';
}