projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix up potential overflows in size calculations by replacing
[pspp]
/
src
/
set.q
diff --git
a/src/set.q
b/src/set.q
index fdb2d30949e1e6e2d3fb96f7c59b773ea53fdaf8..eb0a7331023c9f11605922a00e65b342ec5cceb2 100644
(file)
--- a/
src/set.q
+++ b/
src/set.q
@@
-14,8
+14,8
@@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 5
9 Temple Place - Suite 330
, Boston, MA
- 0211
1-1307
, USA. */
+ Foundation, Inc., 5
1 Franklin Street, Fifth Floor
, Boston, MA
+ 0211
0-1301
, USA. */
/*
Categories of SET subcommands:
/*
Categories of SET subcommands:
@@
-87,6
+87,9
@@
int tgetnum (const char *);
#endif /* !HAVE_TERMCAP_H */
#endif /* !HAVE_LIBTERMCAP */
#endif /* !HAVE_TERMCAP_H */
#endif /* !HAVE_LIBTERMCAP */
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
+
static int set_errors;
static int set_messages;
static int set_results;
static int set_errors;
static int set_messages;
static int set_results;
@@
-1327,7
+1330,7
@@
get_include(void)
return (cmd.inc != STC_OFF );
}
return (cmd.inc != STC_OFF );
}
-
unsigned
char
+char
get_endcmd(void)
{
return cmd.s_endcmd[0];
get_endcmd(void)
{
return cmd.s_endcmd[0];
@@
-1403,7
+1406,7
@@
set_rng (unsigned long seed)
{
rng = gsl_rng_alloc (gsl_rng_mt19937);
if (rng == NULL)
{
rng = gsl_rng_alloc (gsl_rng_mt19937);
if (rng == NULL)
-
out_of_memory
();
+
xalloc_die
();
gsl_rng_set (rng, seed);
}
gsl_rng_set (rng, seed);
}