summaryrefslogtreecommitdiffstats
path: root/extras/libmemif/src/memif_private.h
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2021-03-01 08:45:17 +0100
committerDamjan Marion <dmarion@me.com>2021-03-04 09:09:08 +0000
commit57084e54082a29d19d2e4b71581c2a4980f8ce15 (patch)
tree11c937ad36d0da11ef4407fc6384feed0d105a09 /extras/libmemif/src/memif_private.h
parent0ac5782e600097b66e6b06e0b9edc79651f3a4bd (diff)
libmemif: socket filename length 108
Dynamic size array was causing trouble in strlcpy. LINUX allows for max 108 filename length, so we can use that to make the array constant size. Type: fix Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com> Change-Id: I76b1fc41f9d93cfbc9ad11bdca0c96a1fc261e84
Diffstat (limited to 'extras/libmemif/src/memif_private.h')
-rw-r--r--extras/libmemif/src/memif_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/libmemif/src/memif_private.h b/extras/libmemif/src/memif_private.h
index 59899fd6285..9542936983e 100644
--- a/extras/libmemif/src/memif_private.h
+++ b/extras/libmemif/src/memif_private.h
@@ -193,7 +193,7 @@ typedef struct
int fd;
uint16_t use_count;
memif_socket_type_t type;
- uint8_t *filename;
+ uint8_t filename[108];
/* unique database */
struct libmemif_main *lm;
uint16_t interface_list_len;