mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-27 04:42:56 +03:00
Use correct length definition
svn path=/trunk/netsurf/; revision=9867
This commit is contained in:
parent
9f69106ac4
commit
e01c0ea326
@ -356,9 +356,9 @@ void nsbeos_style_to_font(BFont &font, const plot_font_style_t *fstyle)
|
||||
if (family) {
|
||||
font_family beos_family;
|
||||
|
||||
strncpy(beos_family, family, B_FONT_FAMILY_NAME_LENGTH);
|
||||
strncpy(beos_family, family, B_FONT_FAMILY_LENGTH);
|
||||
// Ensure it's terminated
|
||||
beos_family[B_FONT_FAMILY_NAME_LENGTH] = '\0';
|
||||
beos_family[B_FONT_FAMILY_LENGTH] = '\0';
|
||||
|
||||
font.SetFamilyAndFace(beos_family, face);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user