--- libxcrypt-4.5.2.orig/lib/crypt-gost-yescrypt.c	2025-11-10 18:31:08.000000000 +0100
+++ libxcrypt-4.5.2/lib/crypt-gost-yescrypt.c	2026-06-24 08:52:14.800328324 +0200
@@ -131,7 +131,7 @@ crypt_gost_yescrypt_rn (const char *phra
   intbuf->outbuf[1] = 'g';
 
   /* extract yescrypt output from "$y$param$salt$output" */
-  char *hptr = strchr ((const char *) intbuf->retval + 3, '$');
+  char *hptr = strchr ((char *) intbuf->retval + 3, '$');
   if (!hptr)
     {
       errno = EINVAL;
