From: Michael R Sweet Date: Fri, 4 Mar 2022 00:59:02 +0000 (-0500) Subject: Fix Windows build error. X-Git-Tag: v2.4.2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddb44a325d9af90be1641db9369c36122579153c;p=thirdparty%2Fcups.git Fix Windows build error. --- diff --git a/cups/tls-sspi.c b/cups/tls-sspi.c index f3fb0f1e24..ca88ee23bc 100644 --- a/cups/tls-sspi.c +++ b/cups/tls-sspi.c @@ -16,6 +16,7 @@ */ #include "debug-private.h" +#include /* @@ -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); }