diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c index ef65c6d86c..576453a3ad 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -505,7 +505,7 @@ char *getcwd(char *buf, int size) | |||
505 | return tc.currdir; | 505 | return tc.currdir; |
506 | else if (size > 0) | 506 | else if (size > 0) |
507 | { | 507 | { |
508 | strncpy(buf, tc.currdir, size); | 508 | strlcpy(buf, tc.currdir, size); |
509 | return buf; | 509 | return buf; |
510 | } | 510 | } |
511 | else | 511 | else |
@@ -924,7 +924,7 @@ int rockbox_browse(const char *root, int dirfilter) | |||
924 | } | 924 | } |
925 | else | 925 | else |
926 | { | 926 | { |
927 | strncpy(current, LANG_DIR "/english.lng", sizeof(current)); | 927 | strlcpy(current, LANG_DIR "/english.lng", sizeof(current)); |
928 | } | 928 | } |
929 | } | 929 | } |
930 | /* Center on currently loaded WPS */ | 930 | /* Center on currently loaded WPS */ |