projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
q2c: Use new subc_list_error() to report too many subcommands.
[pspp]
/
src
/
libpspp
/
u8-istream.c
diff --git
a/src/libpspp/u8-istream.c
b/src/libpspp/u8-istream.c
index 6d4d7707de628afdec78cf9c0b07e325b5b89307..c11163435f04bcf53d54c55f94960cc8de972955 100644
(file)
--- a/
src/libpspp/u8-istream.c
+++ b/
src/libpspp/u8-istream.c
@@
-22,6
+22,7
@@
#include <errno.h>
#include <fcntl.h>
#include <iconv.h>
#include <errno.h>
#include <fcntl.h>
#include <iconv.h>
+#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@@
-252,7
+253,8
@@
convert_iconv (iconv_t converter,
char **inbufp, size_t *inbytesleft,
char **outbufp, size_t *outbytesleft)
{
char **inbufp, size_t *inbytesleft,
char **outbufp, size_t *outbytesleft)
{
- size_t n = iconv (converter, inbufp, inbytesleft, outbufp, outbytesleft);
+ size_t n = iconv (converter, (ICONV_CONST char **) inbufp, inbytesleft,
+ outbufp, outbytesleft);
return n == SIZE_MAX ? errno : 0;
}
return n == SIZE_MAX ? errno : 0;
}