summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-11-15 00:29:35 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2022-11-15 01:24:26 -0500
commit687767bd8f4f471c2c6e9509125a78d7cb5f0f62 (patch)
treee76f7412eafeeecd73445149c60651b31d56d8bf /apps/tree.c
parentaea324b74661e77341e518de981fc989ffd1e010 (diff)
downloadrockbox-687767bd8f4f471c2c6e9509125a78d7cb5f0f62.tar.gz
rockbox-687767bd8f4f471c2c6e9509125a78d7cb5f0f62.zip
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
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c4
1 files changed, 2 insertions, 2 deletions
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)
511 return tc.currdir; 511 return tc.currdir;
512 else if (size) 512 else if (size)
513 { 513 {
514 if ((getcwd_size_t)strlcpy(buf, tc.currdir, size) < size) 514 if (strmemccpy(buf, tc.currdir, size) != NULL)
515 return buf; 515 return buf;
516 } 516 }
517 /* size == 0, or truncation in strlcpy */ 517 /* size == 0, or truncation in strmemccpy */
518 return NULL; 518 return NULL;
519} 519}
520 520