summaryrefslogtreecommitdiff
path: root/src/mp3_subr.c
diff options
context:
space:
mode:
authorKjetil Ørbekk <orbekk@pvv.ntnu.no>2008-05-04 12:07:44 +0200
committerKjetil Ørbekk <orbekk@pvv.ntnu.no>2008-05-04 12:07:44 +0200
commit76fdfd180cd2c9cca370b12178aaa72ab54bfade (patch)
treef22ebfa81d82cfc5a019d23f6ebf30a28c885851 /src/mp3_subr.c
parentc881ab427c8de1bf906797b64434263ddd4653c4 (diff)
- Removed some BSD specific stuff etc.
Diffstat (limited to 'src/mp3_subr.c')
-rw-r--r--src/mp3_subr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mp3_subr.c b/src/mp3_subr.c
index 3c5798c..dd8e68d 100644
--- a/src/mp3_subr.c
+++ b/src/mp3_subr.c
@@ -16,8 +16,6 @@
#include <mnode.h>
#include <queue.h>
#include <debug.h>
-#include <log.h>
-
struct queryvector {
char *artist;
@@ -136,7 +134,7 @@ mp3_filter(struct collection *selection, int filter, struct filler_data *fd)
if (field == NULL || !strcmp(field, ""))
continue;
/* XXX: check if we need to free this or not. */
- strlcpy(name, field, sizeof(name));
+ strncpy(name, field, sizeof(name));
fd->filler(fd->buf, name, NULL, 0);
}
}