Skip to content
Snippets Groups Projects
Commit 19f848b4 authored by burneykb's avatar burneykb
Browse files

Fixed crashing issues

parent 6590a5b6
No related branches found
No related tags found
No related merge requests found
......@@ -35,3 +35,4 @@
# vrpn/build files
bt_poc/src/vrpn/build*
src/vrpn/pc_linux64/*
......@@ -183,8 +183,8 @@ int main(int argc, char **argv)
// ucart_vrpn_tracker_addCallback(tracker, cb);
while(1)
{
char *tmpRespBuf = malloc(1024);
char *tmpCommandBuf = malloc(CMD_MAX_LENGTH);
char tmpRespBuf[1024];
char tmpCommandBuf[CMD_MAX_LENGTH];
//check for user input via cli
if(newCliInput)
{
......@@ -209,6 +209,7 @@ int main(int argc, char **argv)
fwrite(tmpRespBuf, 1024, 1, stdout);
printf("'\n"); fflush(0);
}
usleep(10000);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment