diff options
Diffstat (limited to 'apps/plugins/rockpaint.c')
-rw-r--r-- | apps/plugins/rockpaint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c index 20bebdd11f..5de6c14a6b 100644 --- a/apps/plugins/rockpaint.c +++ b/apps/plugins/rockpaint.c | |||
@@ -686,7 +686,7 @@ static bool browse( char *dst, int dst_size, const char *start ) | |||
686 | if( selected < 0 || selected >= item_count ) | 686 | if( selected < 0 || selected >= item_count ) |
687 | break; | 687 | break; |
688 | struct entry* e = &dc[indexes[selected]]; | 688 | struct entry* e = &dc[indexes[selected]]; |
689 | rb->strncpy( bbuf_s, e->name, sizeof( bbuf_s ) ); | 689 | rb->strlcpy( bbuf_s, e->name, sizeof( bbuf_s ) ); |
690 | if( !( e->attr & ATTR_DIRECTORY ) ) | 690 | if( !( e->attr & ATTR_DIRECTORY ) ) |
691 | { | 691 | { |
692 | *tree = backup; | 692 | *tree = backup; |