mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:10:38 +00:00
Minor bug fixes submitted by Adam Fedor.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@1745 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
35993213ff
commit
eb9dea80ec
6 changed files with 87 additions and 57 deletions
|
@ -85,10 +85,12 @@ _base_name(NSString *name)
|
|||
static NSString *
|
||||
extension(NSString *name)
|
||||
{
|
||||
const char* cname;
|
||||
char *s;
|
||||
|
||||
s = strrchr([name cString], '.');
|
||||
if (s > strrchr([name cString], '/'))
|
||||
cname = [name cString];
|
||||
s = strrchr(cname, '.');
|
||||
if (s > strrchr(cname, '/'))
|
||||
return [NSString stringWithCString:s+1];
|
||||
else
|
||||
return nil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue