修复日志落盘可能log重复写入文件的问题

Change-Id: I927f6c0b023eefb2b85d58a93ec2b01bdcd46f99
diff --git a/mbtk/mbtk_logd/alog_read.c b/mbtk/mbtk_logd/alog_read.c
index 161c5ab..cfd2c6d 100755
--- a/mbtk/mbtk_logd/alog_read.c
+++ b/mbtk/mbtk_logd/alog_read.c
@@ -60,7 +60,10 @@
 int tcp_connect(char* ip, int port);
 
 extern int tmp_rd_fd;
-extern char radiolog_buff[MAX_BUFFER_SIZE];
+//extern char radiolog_buff[MAX_BUFFER_SIZE];
+extern char *radio_globalPtr;
+extern int radio_len;
+
 
 void hex_print(char* buf, int len)
 {
@@ -219,7 +222,7 @@
 
     static char buffer[MAX_BUFFER_SIZE] = {0};
     static int buffer_index = 0;
-
+    radio_globalPtr = buffer;
     
     if(fcntl(fd_radio, F_GETFL) == -1 || access(tmp_log, W_OK) != 0)
     {
@@ -283,7 +286,7 @@
     {
         memcpy(buffer + buffer_index, defaultBuffer, totalLen);
         buffer_index += totalLen;
-        memcpy(radiolog_buff,buffer,buffer_index);
+        //memcpy(radiolog_buff,buffer,buffer_index);
     }