Const casts.
[pspp] / src / language / tests / float-format.c
index fed19479d2fe8043ee1a060e88b49b2fc4221c3e..b2d5a1663f0808a8a6b9a6f09a3527eea61c3b24 100644 (file)
@@ -136,7 +136,7 @@ parse_fp (struct lexer *lexer, struct fp *fp)
               msg (SE, _("Hexadecimal floating constant too long."));
               return false;
             }
-          strncpy ((char *) fp->data, ds_cstr (lex_tokstr (lexer)), sizeof fp->data);
+          strncpy (CHAR_CAST_BUG (char *,fp->data), ds_cstr (lex_tokstr (lexer)), sizeof fp->data);
         }
 
       lex_get (lexer);