input/cdio_paranoia: use CopyString() instead of g_strlcpy()

This commit is contained in:
Max Kellermann
2014-12-01 22:22:29 +01:00
parent bc00c38f9d
commit fbf76c6d21
2 changed files with 3 additions and 5 deletions

View File

@@ -39,7 +39,6 @@
#include <stddef.h>
#include <string.h>
#include <stdlib.h>
#include <glib.h>
#include <assert.h>
#ifdef HAVE_CDIO_PARANOIA_PARANOIA_H
@@ -149,7 +148,7 @@ parse_cdio_uri(struct cdio_uri *dest, const char *src, Error &error)
const char *slash = strrchr(src, '/');
if (slash == nullptr) {
/* play the whole CD in the specified drive */
g_strlcpy(dest->device, src, sizeof(dest->device));
CopyString(dest->device, src, sizeof(dest->device));
dest->track = -1;
return true;
}