From 687767bd8f4f471c2c6e9509125a78d7cb5f0f62 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Tue, 15 Nov 2022 00:29:35 -0500 Subject: convert a few more strlcpy to strmemccpy calls Fix Red and Yellow albumart is imported to plugins just use a macro substitution for now Change-Id: I7c2e10d7559c087f0b3d0e6b844027d3b323da55 --- apps/tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index 23a909281d..e8655cd0d0 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -511,10 +511,10 @@ char *getcwd(char *buf, getcwd_size_t size) return tc.currdir; else if (size) { - if ((getcwd_size_t)strlcpy(buf, tc.currdir, size) < size) + if (strmemccpy(buf, tc.currdir, size) != NULL) return buf; } - /* size == 0, or truncation in strlcpy */ + /* size == 0, or truncation in strmemccpy */ return NULL; } -- cgit v1.2.3