summaryrefslogtreecommitdiff
path: root/src/file.h
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2020-03-08 21:30:06 +0000
committerChristos Zoulas <christos@zoulas.com>2020-03-08 21:30:06 +0000
commit526e1c50cbe05f3b910576285a5442701a79af83 (patch)
treefb952bab77419ac84e69cb02c0f4ac720db49044 /src/file.h
parent73d89fec800dfda5d8cdc0922adc351dc5fedae1 (diff)
downloadfile-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file.h b/src/file.h
index 18f7907d..3021fb32 100644
--- a/src/file.h
+++ b/src/file.h
@@ -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);