修复了PrintState函数中字符串数组未加终止符的问题

This commit is contained in:
Yerolling 2022-05-24 21:37:30 +08:00
parent d96c174703
commit 8485eef361

View File

@ -162,7 +162,10 @@ void PrintState(char *str)
clockwise[count] = '0';
counterclockwise[count] = '0';
} //遍历轨道链表将所有站点初始化为0无任何请求
target[count] = '\0';
clockwise[count] = '\0';
counterclockwise[count] = '\0';
bus_query_t *t = NULL;
int i;
for (t = queries; t != NULL; t = t->next_node)