diff -up libsoup-2.62.2/libsoup/soup-auth-digest.c.coverity-scan-issues libsoup-2.62.2/libsoup/soup-auth-digest.c
--- libsoup-2.62.2/libsoup/soup-auth-digest.c.coverity-scan-issues	2018-03-23 14:44:39.000000000 +0100
+++ libsoup-2.62.2/libsoup/soup-auth-digest.c	2018-06-22 11:25:33.384294057 +0200
@@ -343,7 +343,7 @@ soup_auth_digest_compute_response (const
 	g_checksum_update (checksum, (guchar *)method, strlen (method));
 	g_checksum_update (checksum, (guchar *)":", 1);
 	g_checksum_update (checksum, (guchar *)uri, strlen (uri));
-	strncpy (hex_a2, g_checksum_get_string (checksum), 33);
+	memcpy (hex_a2, g_checksum_get_string (checksum), sizeof (char) * 33);
 	g_checksum_free (checksum);
 
 	/* compute KD */
diff -up libsoup-2.62.2/libsoup/soup-auth-ntlm.c.coverity-scan-issues libsoup-2.62.2/libsoup/soup-auth-ntlm.c
--- libsoup-2.62.2/libsoup/soup-auth-ntlm.c.coverity-scan-issues	2018-05-07 14:02:22.000000000 +0200
+++ libsoup-2.62.2/libsoup/soup-auth-ntlm.c	2018-06-22 11:25:33.384294057 +0200
@@ -810,7 +810,7 @@ soup_ntlm_response (const char *nonce,
 	ntlm_set_string (&resp.nt_resp, &offset, sizeof (nt_resp));
 
 	out = g_malloc (((offset + 3) * 4) / 3 + 6);
-	strncpy (out, "NTLM ", 5);
+	memcpy (out, "NTLM ", 5);
 	p = out + 5;
 
 	state = save = 0;
