修复了PrintState函数中字符串数组未加终止符的问题
This commit is contained in:
@@ -162,6 +162,9 @@ void PrintState(char *str)
|
|||||||
clockwise[count] = '0';
|
clockwise[count] = '0';
|
||||||
counterclockwise[count] = '0';
|
counterclockwise[count] = '0';
|
||||||
} //遍历轨道链表,将所有站点初始化为0,即:无任何请求;
|
} //遍历轨道链表,将所有站点初始化为0,即:无任何请求;
|
||||||
|
target[count] = '\0';
|
||||||
|
clockwise[count] = '\0';
|
||||||
|
counterclockwise[count] = '\0';
|
||||||
|
|
||||||
bus_query_t *t = NULL;
|
bus_query_t *t = NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|||||||
Reference in New Issue
Block a user