openbsd-ports/audio/mt-daapd/patches/patch-src_mp3-scanner_c

13 lines
423 B
Plaintext
Raw Normal View History

$OpenBSD: patch-src_mp3-scanner_c,v 1.1 2005/10/07 20:15:13 alek Exp $
--- src/mp3-scanner.c.orig Sat Feb 5 22:22:47 2005
+++ src/mp3-scanner.c Fri Oct 7 21:50:05 2005
@@ -1748,7 +1748,7 @@ void make_composite_tags(MP3FILE *song)
}
}
- sprintf(fdescr,"%s audio file",song->type);
+ snprintf(fdescr,sizeof(fdescr),"%s audio file",song->type);
song->description = strdup(fdescr);
if(song->url) {