Skip to content

Commit

Permalink
fix: only remove suffix in final file component (i.e., allow folder s…
Browse files Browse the repository at this point in the history
…uffixes)
  • Loading branch information
Gregungory committed Apr 28, 2021
1 parent 624057e commit 3a7200a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/bsdf.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef lint
static const char RCSid[] = "$Id: bsdf.c,v 2.59 2021/03/27 17:50:18 greg Exp $";
static const char RCSid[] = "$Id: bsdf.c,v 2.60 2021/04/28 00:59:10 greg Exp $";
#endif
/*
* bsdf.c
Expand Down Expand Up @@ -330,6 +330,8 @@ SDclipName(char *res, const char *fname)
for (cp = fname; *cp; cp++)
if (*cp == '.')
dot = cp;
else if (*cp == '/')
dot = NULL;
if ((dot == NULL) | (dot < fname+2))
dot = cp;
if (dot - fname >= SDnameLn)
Expand Down

0 comments on commit 3a7200a

Please sign in to comment.