diff options
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 07af9bf833..4d4935a6b6 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -706,7 +706,7 @@ static bool retrieve(struct tagcache_search *tcs, struct index_entry *idx, | |||
706 | if (tag != tag_filename) | 706 | if (tag != tag_filename) |
707 | { | 707 | { |
708 | ep = (struct tagfile_entry *)&hdr->tags[tag][seek]; | 708 | ep = (struct tagfile_entry *)&hdr->tags[tag][seek]; |
709 | strncpy(buf, ep->tag_data, size-1); | 709 | strlcpy(buf, ep->tag_data, size); |
710 | 710 | ||
711 | return true; | 711 | return true; |
712 | } | 712 | } |