projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hash-functions: Avoid signed integer overflow.
[pspp]
/
src
/
libpspp
/
i18n.c
diff --git
a/src/libpspp/i18n.c
b/src/libpspp/i18n.c
index 55b2d67fab0665a9605254964daf73c51bc7a7ba..bc0db0b896426c094b305382141a6a3e69959cdb 100644
(file)
--- a/
src/libpspp/i18n.c
+++ b/
src/libpspp/i18n.c
@@
-120,7
+120,7
@@
create_iconv (const char* tocode, const char* fromcode)
free (soutbuf);
iconv_close (bconv);
}
free (soutbuf);
iconv_close (bconv);
}
-
+
hmapx_insert (&map, converter, hash);
return converter;
hmapx_insert (&map, converter, hash);
return converter;
@@
-242,7
+242,7
@@
try_recode (struct converter *cvtr, char fallbackchar,
for (i = 0 ; i < null_bytes ; ++i)
*out++ = '\0';
for (i = 0 ; i < null_bytes ; ++i)
*out++ = '\0';
-
+
return out - 1 - out_;
}
return out - 1 - out_;
}
@@
-667,7
+667,7
@@
set_default_encoding (const char *enc)
/* Attempts to set the encoding from a locale name
/* Attempts to set the encoding from a locale name
- returns true if successful
l
.
+ returns true if successful.
This function does not (should not!) alter the current locale.
*/
bool
This function does not (should not!) alter the current locale.
*/
bool
@@
-747,7
+747,7
@@
valid_encoding (const char *enc)
/* Return the system local's idea of the
/* Return the system local's idea of the
- decimal sep
e
rator character */
+ decimal sep
a
rator character */
char
get_system_decimal (void)
{
char
get_system_decimal (void)
{