diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-29 19:18:59 +0200 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-29 19:18:59 +0200 |
commit | 6063424c82f18f3ea8bbf9a92fd30b349ec778bd (patch) | |
tree | 398d20c2637ddf5a44ddcfbeacb449c256e71c18 /lib/libalpm/group.h | |
parent | 3ac94cc71905535252db84f8a0c26a4f59d8162c (diff) | |
download | pacman-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.h | 4 |
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; |