Lots of str[n]cat, str[n]cpy, and [v]sprintf have been replaced by strlcat, strlcpy...
[xonotic/darkplaces.git] / ui.c
diff --git a/ui.c b/ui.c
index b2b91bc..82fccb5 100644 (file)
--- 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)
        {