summaryrefslogtreecommitdiffstats
path: root/src/queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/queue.c')
-rw-r--r--src/queue.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/queue.c b/src/queue.c
index 7b36dc6..e5dc307 100644
--- a/src/queue.c
+++ b/src/queue.c
@@ -23,7 +23,8 @@
#include <stdlib.h>
#include <string.h>
-struct queue *queue_create(int max_objects, unsigned int flags)
+struct queue *
+queue_create(const char *name, int max_objects, unsigned int flags)
{
struct queue *b;
@@ -42,6 +43,8 @@ struct queue *queue_create(int max_objects, unsigned int flags)
return NULL;
}
}
+ strncpy(b->name, name, QUEUE_NAMELEN);
+ b->name[QUEUE_NAMELEN-1]='\0';
return b;
}