]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
set the maximum value when printing library_description
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 3 Jul 2014 13:05:37 +0000 (15:05 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 3 Jul 2014 13:05:37 +0000 (15:05 +0200)
lib/pkcs11.c

index 3b55d3eac5d34e974388172518040239ef240d7f..79221f16f794519f9429522e46973d0c9b4581aa 100644 (file)
@@ -651,8 +651,8 @@ int gnutls_pkcs11_reinit(void)
                        } else {
                                providers[i].active = 0;
                                _gnutls_debug_log
-                                   ("Cannot re-initialize registered module '%s': %s\n",
-                                    providers[i].info.library_description,
+                                   ("Cannot re-initialize registered module '%.*s': %s\n",
+                                    (int)32, providers[i].info.library_description,
                                     p11_kit_strerror(rv));
                        }
                }