image/* Wrong sizeof.
mmc: remove some deprecated things.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
$Id: cdrdao.c,v 1.19 2006/02/13 01:43:29 rocky Exp $
|
||||
$Id: cdrdao.c,v 1.20 2006/02/13 11:00:53 rocky Exp $
|
||||
|
||||
Copyright (C) 2004, 2005, 2006 Rocky Bernstein <rocky@panix.com>
|
||||
toc reading routine adapted from cuetools
|
||||
@@ -25,7 +25,7 @@
|
||||
(*.cue).
|
||||
*/
|
||||
|
||||
static const char _rcsid[] = "$Id: cdrdao.c,v 1.19 2006/02/13 01:43:29 rocky Exp $";
|
||||
static const char _rcsid[] = "$Id: cdrdao.c,v 1.20 2006/02/13 11:00:53 rocky Exp $";
|
||||
|
||||
#include "image.h"
|
||||
#include "cdio_assert.h"
|
||||
@@ -1145,7 +1145,7 @@ static bool
|
||||
get_hwinfo_cdrdao ( const CdIo_t *p_cdio, /*out*/ cdio_hwinfo_t *hw_info)
|
||||
{
|
||||
strncpy(hw_info->psz_vendor, "libcdio",
|
||||
sizeof(hw_info->psz_model)-1);
|
||||
sizeof(hw_info->psz_vendor)-1);
|
||||
hw_info->psz_vendor[sizeof(hw_info->psz_vendor)-1] = '\0';
|
||||
strncpy(hw_info->psz_model, "cdrdao",
|
||||
sizeof(hw_info->psz_model)-1);
|
||||
|
||||
Reference in New Issue
Block a user