diff options
author | anbr <vdr07@deltab.de> | 2011-02-13 15:57:17 +0100 |
---|---|---|
committer | anbr <vdr07@deltab.de> | 2011-02-13 15:57:17 +0100 |
commit | 1b5c846f63faa7392700d320213747c2196ff74d (patch) | |
tree | 00b22d0e0e418adf57a6cf238cb556d67a827fe9 | |
parent | 1177da06e8694db91bb3cd19eaf1a4b8744057c8 (diff) | |
download | vdr-plugin-dvdswitch-1b5c846f63faa7392700d320213747c2196ff74d.tar.gz vdr-plugin-dvdswitch-1b5c846f63faa7392700d320213747c2196ff74d.tar.bz2 |
Remove unused type cast
-rw-r--r-- | commands.c | 2 | ||||
-rw-r--r-- | setup-itypes.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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; } |