From 113d6423b4e5f8b06227d10a32dbc851e01224bb Mon Sep 17 00:00:00 2001 From: mazzearos Date: Thu, 2 Aug 2012 09:19:07 +0000 Subject: [PATCH] src/init.c: bail out if skin_name or font_name is "". Fixes a crash on AROS src/filesel.c: fixed BSTR conversion routine for AROS. Without this fix "RAM DISK" was printed as "AM DISK" in the file selector. src/setup.c: removed slash to avoid that paths like "PROGDIR:/share" are created on AROS. That fix should be right for all Amiga like OS but I don't want to change things which I can't test. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1970 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/filesel.c | 17 +++++++++++------ src/init.c | 12 ++++++++++++ src/setup.c | 2 +- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/src/filesel.c b/src/filesel.c index d904f800..a9a9eeb1 100644 --- a/src/filesel.c +++ b/src/filesel.c @@ -470,16 +470,21 @@ void bstrtostr( BSTR in, STRPTR out, TEXT max ) { STRPTR iptr; dword i; - - iptr = BADDR( in ); - - if( max > iptr[0] ) max = iptr[0]; + dword len; #if defined(__AROS__) - for ( i=0 ; i len ) max = len; + + for( i=0; i