Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/group.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-29 17:18:59 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-03-29 17:18:59 +0000
commit6063424c82f18f3ea8bbf9a92fd30b349ec778bd (patch)
tree398d20c2637ddf5a44ddcfbeacb449c256e71c18 /lib/libalpm/group.h
parent3ac94cc71905535252db84f8a0c26a4f59d8162c (diff)
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;