projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add "x" prefix to calls to plain malloc(), calloc(), strdup(), realloc().
[pspp-builds.git]
/
tests
/
dissect-sysfile.c
diff --git
a/tests/dissect-sysfile.c
b/tests/dissect-sysfile.c
index 1c81c72c98b089c3cb5dd6639c695acd64bedd01..62161f9c540200b1bcc954d5cef829342e8d671f 100644
(file)
--- a/
tests/dissect-sysfile.c
+++ b/
tests/dissect-sysfile.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 2007, 2008 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2008
, 2009
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-723,7
+723,7
@@
static void
read_character_encoding (struct sfm_reader *r, size_t size, size_t count)
{
const unsigned long int posn = ftell (r->file);
read_character_encoding (struct sfm_reader *r, size_t size, size_t count)
{
const unsigned long int posn = ftell (r->file);
- char *encoding = calloc (size, count + 1);
+ char *encoding =
x
calloc (size, count + 1);
read_string (r, encoding, count + 1);
printf ("%08lx: Character Encoding: %s\n", posn, encoding);
read_string (r, encoding, count + 1);
printf ("%08lx: Character Encoding: %s\n", posn, encoding);