Fix code warning.

Change-Id: Ib11fb49f528d3688351ae349d5b4e307c28b3967
diff --git a/mbtk/test/others/framebuffer_demo.c b/mbtk/test/others/framebuffer_demo.c
index 281e9ab..bc35a07 100755
--- a/mbtk/test/others/framebuffer_demo.c
+++ b/mbtk/test/others/framebuffer_demo.c
@@ -10,6 +10,8 @@
 #include <sys/mman.h>
 #include <math.h>
 
+#include "mbtk_utils.h"
+
 /**< \brief 根据实际情况修改,此处为unsigned short是565的屏,根据程序打印出的
     bits_per_pixel的值可以判断出输出格式是565还是888 */
 // typedef unsigned int color_t;
@@ -122,8 +124,8 @@
         return;
     }
 
-    read(fd , &filehead , sizeof(filehead));
-    read(fd , &infohead , sizeof(infohead));
+    mbtk_read(fd , &filehead , sizeof(filehead));
+    mbtk_read(fd , &infohead , sizeof(infohead));
     printf("bfType: 0x%x, bfSize: %d, bfOffBits: 0x%x\n", filehead.bfType, filehead.bfSize, filehead.bfOffBits);
 
     printf("biSize: %d, biWidth: %d, biHeight: %d\n", infohead.biSize, infohead.biWidth, infohead.biHeight);
@@ -155,11 +157,11 @@
     }
 
     printf("biSizeImage:%d, width_error: %d\n", infohead.biSizeImage, width_error);
-    read(fd , p_data , infohead.biSizeImage);
+    mbtk_read(fd , p_data , infohead.biSizeImage);
     p = p_data;
 
     int ret;
-    char data[24] = {0};
+    char data[100] = {0};
     int debug_fd = open("/data/debug_fb", O_RDWR|O_CREAT|O_TRUNC, 0644);
     if (debug_fd < 0) {
         printf("debug_fb open error\n");
@@ -168,7 +170,7 @@
     printf("height:%d, width:%d\n", infohead.biHeight, infohead.biWidth);
     for(j = infohead.biHeight - 1; j >= 0; j--) {
         for(i = 0; i < infohead.biWidth; i++) {
-            c = transform_func(p);
+            c = transform_func((char*)p);
             // c = *p;
             p += pixel_byte;
             // c = ((c >> 8) & 0x00ff) | ((c & 0x00ff) << 8);