projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Const casts.
[pspp]
/
src
/
language
/
tests
/
float-format.c
diff --git
a/src/language/tests/float-format.c
b/src/language/tests/float-format.c
index fed19479d2fe8043ee1a060e88b49b2fc4221c3e..b2d5a1663f0808a8a6b9a6f09a3527eea61c3b24 100644
(file)
--- a/
src/language/tests/float-format.c
+++ b/
src/language/tests/float-format.c
@@
-136,7
+136,7
@@
parse_fp (struct lexer *lexer, struct fp *fp)
msg (SE, _("Hexadecimal floating constant too long."));
return false;
}
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);
}
lex_get (lexer);