The last change to plugins.c erroneously passes a size_t as a field
authorGreg Hudson <ghudson@mit.edu>
Tue, 28 Oct 2008 20:28:52 +0000 (20:28 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 28 Oct 2008 20:28:52 +0000 (20:28 +0000)
width to asprintf.  Address the signed/unsigned warning cleanup using
a cast instead.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20931 dc483132-0cff-0310-8789-dd5450dbe970

src/util/support/plugins.c

index 5391d7be7006e7ea64fb3332e5589007789f0b61..26ec3912f9bc516e026875cb092a6d80204e8e9a 100644 (file)
@@ -618,7 +618,7 @@ krb5int_open_plugin_dirs (const char * const *dirnames,
                 }
                 
                if (!err) {
-                    size_t len = NAMELEN (d);
+                    int len = NAMELEN (d);
                    if (asprintf(&filepath, "%s/%*s", dirnames[i], len, d->d_name) < 0) {
                        filepath = NULL;
                        err = ENOMEM;