diff --git a/lib/http2.c b/lib/http2.c index 8712934a5c..fa160c1cf6 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -1702,7 +1702,7 @@ static CURLcode http2_handle_stream_close(struct Curl_cfilter *cf, } else if(!stream->bodystarted) { failf(data, "HTTP/2 stream %d was closed cleanly, but before getting " - " all response header fields, treated as error", stream->id); + "all response header fields, treated as error", stream->id); return CURLE_HTTP2_STREAM; } diff --git a/lib/rtsp.c b/lib/rtsp.c index d0e5cf43e3..58bebc90e2 100644 --- a/lib/rtsp.c +++ b/lib/rtsp.c @@ -902,8 +902,8 @@ static CURLcode rtsp_rtp_write_resp(struct Curl_easy *data, /* we SHOULD have consumed all bytes, unless the response is borked. * In which case we write out the left over bytes, letting the client * writer deal with it (it will report EXCESS and fail the transfer). */ - DEBUGF(infof(data, "rtsp_rtp_write_resp(len=%zu, in_header=%d, done=%d " - " rtspc->state=%d, req.size=%" FMT_OFF_T ")", + DEBUGF(infof(data, "rtsp_rtp_write_resp(len=%zu, in_header=%d, done=%d, " + "rtspc->state=%d, req.size=%" FMT_OFF_T ")", blen, rtspc->in_header, data->req.done, rtspc->state, data->req.size)); if(!result && (is_eos || blen)) { diff --git a/lib/tftp.c b/lib/tftp.c index 7b503436dd..d6dbc4afa4 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -451,7 +451,7 @@ static CURLcode tftp_tx(struct tftp_conn *state, tftp_event_t event) /* Increment the retry counter and log the timeout */ state->retries++; infof(data, "Timeout waiting for block %d ACK. " - " Retries = %d", NEXT_BLOCKNUM(state->block), state->retries); + "Retries = %d", NEXT_BLOCKNUM(state->block), state->retries); /* Decide if we have had enough */ if(state->retries > state->retry_max) { state->error = TFTP_ERR_TIMEOUT; diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c index d533d9a5b6..5f0bdcc8ac 100644 --- a/lib/vtls/schannel.c +++ b/lib/vtls/schannel.c @@ -407,7 +407,7 @@ static CURLcode get_client_cert(struct Curl_easy *data, if((fInCert || blob) && data->set.ssl.cert_type && !curl_strequal(data->set.ssl.cert_type, "P12")) { failf(data, "schannel: certificate format compatibility error " - " for %s", + "for %s", blob ? "(memory blob)" : data->set.ssl.primary.clientcert); curlx_free(cert_store_path); if(fInCert) diff --git a/scripts/spacecheck.pl b/scripts/spacecheck.pl index ad450119fd..2fb2c9793f 100755 --- a/scripts/spacecheck.pl +++ b/scripts/spacecheck.pl @@ -170,6 +170,16 @@ while(my $filename = <$git_ls_files>) { } } + my $search = $content; + my $linepos = 0; + while($search =~ / "\n *" /) { + my $part = substr($search, 0, $+[0]); + $search = substr($search, $+[0]); + my $line = ($part =~ tr/\n//); + push @err, sprintf("line %d: double spaces in folded string", $linepos + $line); + $linepos += $line; + } + if($content =~ /([\x00-\x08\x0b\x0c\x0e-\x1f\x7f])/) { push @err, "content: has binary contents"; }