Skip to content
Snippets Groups Projects
Commit ce08c01e authored by Michael R Sweet's avatar Michael R Sweet
Browse files

isalpha, not isletter... :(

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
parent 731b29bf
Branches
No related tags found
No related merge requests found
//
// "$Id: filename_isdir.cxx,v 1.4.2.5.2.1 2001/12/03 18:29:49 easysw Exp $"
// "$Id: filename_isdir.cxx,v 1.4.2.5.2.2 2001/12/04 19:04:15 easysw Exp $"
//
// Directory detection routines for the Fast Light Tool Kit (FLTK).
//
......@@ -41,7 +41,7 @@ int filename_isdir(const char* n) {
// (read lots of sarcasm in that...)
length = strlen(n);
if (length < (int)(sizeof(fn) - 1)) {
if (length < 4 && isletter(n[0]) && n[1] == ':') {
if (length < 4 && isalpha(n[0]) && n[1] == ':') {
// Always use D:/ for drive letters
fn[0] = n[0];
strcpy(fn + 1, ":/");
......@@ -59,5 +59,5 @@ int filename_isdir(const char* n) {
}
//
// End of "$Id: filename_isdir.cxx,v 1.4.2.5.2.1 2001/12/03 18:29:49 easysw Exp $".
// End of "$Id: filename_isdir.cxx,v 1.4.2.5.2.2 2001/12/04 19:04:15 easysw Exp $".
//
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment