]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (load_deplibs, try_dlopen): Cast argument
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 1 Oct 2004 09:57:56 +0000 (09:57 +0000)
committerGary V. Vaughan <gary@gnu.org>
Fri, 1 Oct 2004 09:57:56 +0000 (09:57 +0000)
to isspace/isalnum to the correct range.  Also, cast to int to
avoid compiler warnings.

ChangeLog
libltdl/ltdl.c

index e3270dc4d6b5071f063faa81e0faf9c1b6eec621..a2cae5bc140f356f171e64c57e9d100d74fdbc28 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * libltdl/ltdl.c (load_deplibs, try_dlopen): Cast argument
+       to isspace/isalnum to the correct range.  Also, cast to int to
+       avoid compiler warnings.
+
 2004-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * libltdl/ltdl.c (try_dlopen): Fix null pointer dereference in
index 5c2bc9b61570c89ac2ec4f8ddc424756498d8713..d0316928e528b4499f943c16a50bfc8bf25e2312 100644 (file)
@@ -737,10 +737,10 @@ load_deplibs (lt_dlhandle handle, char *deplibs)
   p = deplibs;
   while (*p)
     {
-      if (!isspace ((int) *p))
+      if (!isspace ((int)(unsigned char) *p))
        {
          char *end = p+1;
-         while (*end && !isspace((int) *end))
+         while (*end && !isspace((int)(unsigned char) *end))
            {
              ++end;
            }
@@ -786,14 +786,14 @@ load_deplibs (lt_dlhandle handle, char *deplibs)
   p = deplibs;
   while (*p)
     {
-      if (isspace ((int) *p))
+      if (isspace ((int)(unsigned char) *p))
        {
          ++p;
        }
       else
        {
          char *end = p+1;
-         while (*end && !isspace ((int) *end))
+         while (*end && !isspace ((int)(unsigned char) *end))
            {
              ++end;
            }
@@ -1004,7 +1004,7 @@ try_dlopen (lt_dlhandle *phandle, const char *filename)
     int i;
     for (i = 0; i < ext - base_name; ++i)
       {
-       if (isalnum ((int)(base_name[i])))
+       if (isalnum ((int)(unsigned char)(base_name[i])))
          {
            name[i] = base_name[i];
          }