diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-10 03:31:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-10 03:31:29 +0100 |
commit | d8e832445899a9a8ba4d8dc6f61f5feca79a3b85 (patch) | |
tree | 33fe51856cef055b3394a9e5bdc1af7ace655a70 /dev-util/crash/files | |
parent | 8e5dcbcd9c97dcecc17992eff0e8d01e5c83ade2 (diff) |
gentoo auto-resync : 10:08:2023 - 03:31:29
Diffstat (limited to 'dev-util/crash/files')
-rw-r--r-- | dev-util/crash/files/crash-8.0.3-strlcpy.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-util/crash/files/crash-8.0.3-strlcpy.patch b/dev-util/crash/files/crash-8.0.3-strlcpy.patch new file mode 100644 index 000000000000..0701f99470a8 --- /dev/null +++ b/dev-util/crash/files/crash-8.0.3-strlcpy.patch @@ -0,0 +1,26 @@ +diff --git a/defs.h b/defs.h +index 8f7d1fa..26afe23 100644 +--- a/defs.h ++++ b/defs.h +@@ -5553,7 +5553,7 @@ uint32_t swap32(uint32_t, int); + uint64_t swap64(uint64_t, int); + ulong *get_cpumask_buf(void); + int make_cpumask(char *, ulong *, int, int *); +-size_t strlcpy(char *, char *, size_t); ++size_t strlcpy(char *, const char *, size_t) __attribute__ ((__weak__)); + struct rb_node *rb_first(struct rb_root *); + struct rb_node *rb_parent(struct rb_node *, struct rb_node *); + struct rb_node *rb_right(struct rb_node *, struct rb_node *); +diff --git a/tools.c b/tools.c +index 392a797..0f2db10 100644 +--- a/tools.c ++++ b/tools.c +@@ -6795,7 +6795,7 @@ make_cpumask_error: + * always be NULL-terminated. + */ + size_t +-strlcpy(char *dest, char *src, size_t size) ++strlcpy(char *dest, const char *src, size_t size) + { + size_t ret = strlen(src); + |