mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
Don't remove extension if there's isn't one (fixes new segfault.)
This commit is contained in:
parent
ad459c8a0a
commit
481374936d
1 changed files with 3 additions and 1 deletions
|
@ -201,7 +201,9 @@ ceBasename( wchar_t* buf, const wchar_t* path )
|
|||
--ptr;
|
||||
}
|
||||
lstrcpy( buf, ptr );
|
||||
buf[dot-ptr] = 0; /* nuke extension */
|
||||
if ( !!dot ) {
|
||||
buf[dot-ptr] = 0; /* nuke extension */
|
||||
}
|
||||
} /* ceBasename */
|
||||
|
||||
/* Probably belongs as a utility */
|
||||
|
|
Loading…
Reference in a new issue