summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2011-02-13 15:57:17 +0100
committeranbr <vdr07@deltab.de>2011-02-13 15:57:17 +0100
commit1b5c846f63faa7392700d320213747c2196ff74d (patch)
tree00b22d0e0e418adf57a6cf238cb556d67a827fe9
parent1177da06e8694db91bb3cd19eaf1a4b8744057c8 (diff)
downloadvdr-plugin-dvdswitch-1b5c846f63faa7392700d320213747c2196ff74d.tar.gz
vdr-plugin-dvdswitch-1b5c846f63faa7392700d320213747c2196ff74d.tar.bz2
Remove unused type cast
-rw-r--r--commands.c2
-rw-r--r--setup-itypes.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/commands.c b/commands.c
index 5b47064..77127d7 100644
--- a/commands.c
+++ b/commands.c
@@ -319,7 +319,7 @@ eOSState cCMDDir::ProcessKey(eKeys Key)
seldir++;
if(seldir[0] == '/')
seldir++;
- strn0cpy((char*)Buffer, seldir, MaxFileName);
+ strn0cpy(Buffer, seldir, memberof(Buffer));
cRemote::Put(kBack);
}
DELETENULL(info);
diff --git a/setup-itypes.c b/setup-itypes.c
index d151ddd..7b8057e 100644
--- a/setup-itypes.c
+++ b/setup-itypes.c
@@ -89,7 +89,7 @@ eOSState cMenuSetupDSITypes::ProcessKey(eKeys Key)
item = ImageList.Get(Current());
if(Select && item)
{
- strn0cpy((char*)Buffer, item->GetLName(), MaxFileName);
+ strn0cpy(Buffer, item->GetLName(), memberof(Buffer));
*RetIndex = item->Index();
return osBack;
}
@@ -99,7 +99,7 @@ eOSState cMenuSetupDSITypes::ProcessKey(eKeys Key)
item = ImageList.Get(Current());
if(Select && item)
{
- strn0cpy((char*)Buffer, item->GetLName(), MaxFileName);
+ strn0cpy(Buffer, item->GetLName(), memberof(Buffer));
*RetIndex = item->Index();
return osBack;
}