aboutsummaryrefslogtreecommitdiff
path: root/src/msgfile.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2011-09-20 16:54:46 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2011-09-20 16:54:46 +0000
commit57f342753ea40b66544494048193fc92435877aa (patch)
tree6693fa700f4f539d35a0ed1e6e39f689ab72046d /src/msgfile.c
parent474fa40a564fe78f7b759a34a7f0bf0cbc4638f7 (diff)
sprintf formatting
svn path=/trunk/externals/zexy/; revision=15317
Diffstat (limited to 'src/msgfile.c')
-rw-r--r--src/msgfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/msgfile.c b/src/msgfile.c
index bc76768..1d6224c 100644
--- a/src/msgfile.c
+++ b/src/msgfile.c
@@ -659,7 +659,7 @@ static void msgfile_read2(t_msgfile *x, t_symbol *filename, t_symbol *format)
fseek(fil, 0, SEEK_SET);
if (!(readbuf = t_getbytes(length))) {
- pd_error(x, "msgfile_read: could not reserve %d bytes to read into", length);
+ pd_error(x, "msgfile_read: could not reserve %ld bytes to read into", length);
close(fd);
return;
}
@@ -690,7 +690,7 @@ static void msgfile_read2(t_msgfile *x, t_symbol *filename, t_symbol *format)
/* read */
if ((readlength = fread(readbuf, sizeof(char), length, fil)) < length) {
- pd_error(x, "msgfile_read: unable to read %s: %d of %d", filnam, readlength, length);
+ pd_error(x, "msgfile_read: unable to read %s: %ld of %ld", filnam, readlength, length);
fclose(fil);
t_freebytes(readbuf, length);
return;