From 886967fbb7889a6a2654b5256bb9bb442382ccde Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Tue, 28 Oct 2008 20:28:52 +0000 Subject: [PATCH] The last change to plugins.c erroneously passes a size_t as a field 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c index 5391d7be7..26ec3912f 100644 --- a/src/util/support/plugins.c +++ b/src/util/support/plugins.c @@ -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; -- 2.26.2