summaryrefslogtreecommitdiffstats
path: root/include/tt.h
diff options
context:
space:
mode:
authorKarel Zak2011-07-27 16:21:11 +0200
committerKarel Zak2011-07-27 16:21:11 +0200
commitbdc3ed6678f229819bd6ee583745e63c1714fe5d (patch)
tree3c678cca8fecdd83c6b7ee48f253f6ebfaeceadf /include/tt.h
parentbuild-sys: fix gtk-doc distclean (diff)
downloadkernel-qcow2-util-linux-bdc3ed6678f229819bd6ee583745e63c1714fe5d.tar.gz
kernel-qcow2-util-linux-bdc3ed6678f229819bd6ee583745e63c1714fe5d.tar.xz
kernel-qcow2-util-linux-bdc3ed6678f229819bd6ee583745e63c1714fe5d.zip
include; [tt.c] check for array size in columns parser
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/tt.h')
-rw-r--r--include/tt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tt.h b/include/tt.h
index c3dcb2b36..5f6e8172b 100644
--- a/include/tt.h
+++ b/include/tt.h
@@ -83,7 +83,7 @@ extern struct tt_line *tt_add_line(struct tt *tb, struct tt_line *parent);
extern int tt_line_set_data(struct tt_line *ln, int colnum, const char *data);
extern int tt_line_set_userdata(struct tt_line *ln, void *data);
-extern int tt_parse_columns_list(const char *list, int cols[], int *ncols,
+extern int tt_parse_columns_list(const char *list, int ary[], size_t arrsz,
int (name2id)(const char *, size_t));
#endif /* UTIL_LINUX_TT_H */