diff options
author | Christos Zoulas <christos@zoulas.com> | 2020-03-08 21:30:06 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2020-03-08 21:30:06 +0000 |
commit | 526e1c50cbe05f3b910576285a5442701a79af83 (patch) | |
tree | fb952bab77419ac84e69cb02c0f4ac720db49044 /src/file.h | |
parent | 73d89fec800dfda5d8cdc0922adc351dc5fedae1 (diff) | |
download | file-git-526e1c50cbe05f3b910576285a5442701a79af83.tar.gz |
Make file_fmttime() take the size of the buffer, so we can use strlcpy().
(SonarQube)
Diffstat (limited to 'src/file.h')
-rw-r--r-- | src/file.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -27,7 +27,7 @@ */ /* * file.h - definitions for file(1) program - * @(#)$File: file.h,v 1.212 2020/02/20 15:50:20 christos Exp $ + * @(#)$File: file.h,v 1.213 2020/03/08 21:30:06 christos Exp $ */ #ifndef __file_h__ @@ -456,7 +456,7 @@ typedef unsigned long unichar; struct stat; #define FILE_T_LOCAL 1 #define FILE_T_WINDOWS 2 -protected const char *file_fmttime(uint64_t, int, char *); +protected const char *file_fmttime(char *, size_t, uint64_t, int); protected struct magic_set *file_ms_alloc(int); protected void file_ms_free(struct magic_set *); protected int file_default(struct magic_set *, size_t); |