VIPS_BUF_STATIC() does not take length arg

This commit is contained in:
John Cupitt 2009-07-09 13:18:22 +00:00
parent 19bacc7c81
commit b93cc629a0
3 changed files with 4 additions and 4 deletions

View File

@ -10,6 +10,7 @@
- added "fail" option to im_jpeg2vips: fail with an error on any warning
(thank you Ole)
- im_buildlut() could segv for non-zero based tables (thanks Jack)
- VIPS_BUF_STATIC() does not take length arg
25/3/09 started 7.18.0
- revised version numbers

View File

@ -48,8 +48,8 @@ typedef struct {
/* Static init of one of these.
*/
#define VIPS_BUF_STATIC( TEXT, MAX ) \
{ &TEXT[0], MAX, 0, FALSE, 0, FALSE }
#define VIPS_BUF_STATIC( TEXT ) \
{ &TEXT[0], sizeof( TEXT ), 0, FALSE, 0, FALSE }
/* Init and append to one of the above.
*/

View File

@ -70,8 +70,7 @@
*/
#define IM_MAX_ERROR (10240)
static char im_error_text[IM_MAX_ERROR] = "";
static VipsBuf im_error_buf =
VIPS_BUF_STATIC( im_error_text, IM_MAX_ERROR );
static VipsBuf im_error_buf = VIPS_BUF_STATIC( im_error_text );
#define IM_DIAGNOSTICS "IM_DIAGNOSTICS"
#define IM_WARNING "IM_WARNING"