projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge master into output branch.
[pspp]
/
src
/
libpspp
/
str.c
diff --git
a/src/libpspp/str.c
b/src/libpspp/str.c
index afe32de9f2049bfcc5a80ac7a95b36b348be4cb7..8243aa0690aad24a9b519db9bd1838724d32d729 100644
(file)
--- a/
src/libpspp/str.c
+++ b/
src/libpspp/str.c
@@
-23,6
+23,7
@@
#include <stdint.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdlib.h>
+#include <libpspp/cast.h>
#include <libpspp/message.h>
#include <libpspp/pool.h>
#include <libpspp/message.h>
#include <libpspp/pool.h>
@@
-1214,7
+1215,7
@@
ds_capacity (const struct string *st)
char *
ds_cstr (const struct string *st_)
{
char *
ds_cstr (const struct string *st_)
{
- struct string *st =
(struct string *) st_
;
+ struct string *st =
CONST_CAST (struct string *, st_)
;
if (st->ss.string == NULL)
ds_extend (st, 1);
st->ss.string[st->ss.length] = '\0';
if (st->ss.string == NULL)
ds_extend (st, 1);
st->ss.string[st->ss.length] = '\0';