summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/group.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-29 19:18:59 +0200
committerAurelien Foret <aurelien@archlinux.org>2005-03-29 19:18:59 +0200
commit6063424c82f18f3ea8bbf9a92fd30b349ec778bd (patch)
tree398d20c2637ddf5a44ddcfbeacb449c256e71c18 /lib/libalpm/group.h
parent3ac94cc71905535252db84f8a0c26a4f59d8162c (diff)
downloadpacman-6063424c82f18f3ea8bbf9a92fd30b349ec778bd.tar.gz
pacman-6063424c82f18f3ea8bbf9a92fd30b349ec778bd.tar.xz
Replaced snprintf calls by the SNPRINTF macro to avoid buffer overflows when copying strings
Diffstat (limited to 'lib/libalpm/group.h')
-rw-r--r--lib/libalpm/group.h4
1 files changed, 3 insertions, 1 deletions
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;