X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=ui.c;h=82fccb52a2ddbcfade5ea4b00c8513af2a9e4d06;hp=b2b91bc4874f862262807eff22c96e48fdf5c7ca;hb=af0b7a1fa11c2ceedeb9f66ca950f6c0bff8ad8f;hpb=fe08cee338d3d75443d4705e071468b5f30a465f diff --git a/ui.c b/ui.c index b2b91bc4..82fccb52 100644 --- a/ui.c +++ b/ui.c @@ -118,7 +118,7 @@ void ui_item ui->item_count++; } memset(it, 0, sizeof(ui_item_t)); - strncpy(it->name, itemname, 32); + strlcpy (it->name, itemname, sizeof (it->name)); it->flags = 0; if (picname || string) {