From fd9e41146a2e47ccec5ed7d6d065ef27757590e4 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Mon, 16 Feb 2009 10:40:22 +1100 Subject: [PATCH] src/file_io.c : In windows code, cast LPVOID to 'char*' in printf. --- ChangeLog | 5 +++++ src/file_io.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 959e15ea..437516e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-16 Erik de Castro Lopo + + * src/file_io.c + In windows code, cast LPVOID to 'char*' in printf. + 2009-02-15 Erik de Castro Lopo * M4/octave.m4 diff --git a/src/file_io.c b/src/file_io.c index 34b316f0..4e5ee3ee 100644 --- a/src/file_io.c +++ b/src/file_io.c @@ -806,7 +806,7 @@ psf_log_syserr (SF_PRIVATE *psf, int error) NULL ) ; - snprintf (psf->syserr, sizeof (psf->syserr), "System error : %s", lpMsgBuf) ; + snprintf (psf->syserr, sizeof (psf->syserr), "System error : %s", (char*) lpMsgBuf) ; LocalFree (lpMsgBuf) ; } ;