From 1b5c846f63faa7392700d320213747c2196ff74d Mon Sep 17 00:00:00 2001 From: anbr Date: Sun, 13 Feb 2011 15:57:17 +0100 Subject: Remove unused type cast --- commands.c | 2 +- setup-itypes.c | 4 ++-- 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; } -- cgit v1.2.3