source: ProjectBuilder/projects/buffer/pbconf/1.19/buffer/pbpatch/02-pbuffer-fprintf.all@ 511

Last change on this file since 511 was 511, checked in by Bruno Cornec, 16 years ago

Update changelogs for 0.9.3 delivery

File size: 658 bytes
Line 
1diff -rNu buffer-1.19.orig/buffer.c buffer-1.19/buffer.c
2--- buffer-1.19.orig/buffer.c 2000-01-04 03:46:11.000000000 +0100
3+++ buffer-1.19/buffer.c 2008-06-11 00:50:47.000000000 +0200
4@@ -114,6 +114,8 @@
5 */
6 #include <unistd.h>
7 #include <stdio.h>
8+#include <stdlib.h>
9+#include <string.h>
10 #include <signal.h>
11 #include <fcntl.h>
12 #include <errno.h>
13@@ -512,7 +514,7 @@
14 if( debug )
15 fprintf( stderr, "%s pbuffer is 0x%08x, buffer_size is %d [%d x %d]\n",
16 proc_string,
17- (char *)pbuffer, buffer_size, blocks, blocksize );
18+ (unsigned int)pbuffer, buffer_size, blocks, blocksize );
19
20 #ifdef SYS5
21 memset( (char *)pbuffer, '\0', buffer_size );
Note: See TracBrowser for help on using the repository browser.