diff options
author | Christos Zoulas <christos@zoulas.com> | 2020-02-20 15:50:20 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2020-02-20 15:50:20 +0000 |
commit | 841491b2f2fcb1fcb95b5771a82813beaf66b301 (patch) | |
tree | 250c7bcc2f28fba4da28e84191de92a41760f11c /src/file.h | |
parent | 7ab8967bd41a8390cec37acfc531f801ee68ec1c (diff) | |
download | file-git-841491b2f2fcb1fcb95b5771a82813beaf66b301.tar.gz |
We don't allow * in printf formats anywhere - not in magic descriptions and
not in the code itself (Christoph Biedl)
Diffstat (limited to 'src/file.h')
-rw-r--r-- | src/file.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -27,7 +27,7 @@ */ /* * file.h - definitions for file(1) program - * @(#)$File: file.h,v 1.211 2020/02/16 15:52:49 christos Exp $ + * @(#)$File: file.h,v 1.212 2020/02/20 15:50:20 christos Exp $ */ #ifndef __file_h__ @@ -467,6 +467,7 @@ protected int file_pipe2file(struct magic_set *, int, const void *, size_t); protected int file_vprintf(struct magic_set *, const char *, va_list) __attribute__((__format__(__printf__, 2, 0))); protected int file_separator(struct magic_set *); +protected char *file_copystr(char *, size_t, size_t, const char *); protected int file_checkfmt(char *, size_t, const char *); protected size_t file_printedlen(const struct magic_set *); protected int file_print_guid(char *, size_t, const uint64_t *); |