From 6063424c82f18f3ea8bbf9a92fd30b349ec778bd Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Tue, 29 Mar 2005 17:18:59 +0000 Subject: Replaced snprintf calls by the SNPRINTF macro to avoid buffer overflows when copying strings --- lib/libalpm/group.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libalpm/group.h') diff --git a/lib/libalpm/group.h b/lib/libalpm/group.h index a2328e0f..64b7f99e 100644 --- a/lib/libalpm/group.h +++ b/lib/libalpm/group.h @@ -23,9 +23,11 @@ #include "list.h" +#define GRP_NAME_LEN 256 + /* Groups structure */ typedef struct __pmgrp_t { - char name[256]; + char name[GRP_NAME_LEN]; PMList *packages; /* List of strings */ } pmgrp_t; -- cgit v1.2.3-24-g4f1b