]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix Windows build error.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Fri, 4 Mar 2022 00:59:02 +0000 (19:59 -0500)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Fri, 4 Mar 2022 00:59:02 +0000 (19:59 -0500)
cups/tls-sspi.c

index f3fb0f1e24c68cc2cd90f2a3a325f0c24a7e2b60..ca88ee23bc61b28786328326c194e7b9dd9be310 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include "debug-private.h"
+#include <string.h>
 
 
 /*
@@ -2253,8 +2254,8 @@ http_sspi_set_error(const char *title)    // I - Prefix/title for error
 
 
   snprintf(temp, sizeof(temp), "%s (%08x): ", title, GetLastError());
-  templen = strlen(templen);
-  http_sspi_strerror(temp + templen, sizeof(temp) - templen, GetLastError()));
+  templen = strlen(temp);
+  http_sspi_strerror(temp + templen, sizeof(temp) - templen, GetLastError());
   _cupsSetError(IPP_STATUS_ERROR_CUPS_PKI, temp, 0);
 }