diff options
author | epoch <epoch@hacking.allowed.org> | 2020-01-30 00:57:13 -0600 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2020-01-30 00:57:13 -0600 |
commit | 6a0446904ba495c0d4987a5e9b70143484bf6dcf (patch) | |
tree | 5018887e6a406591a49cb178bb48abe4600d9f3e /src | |
parent | be5036823057d2ba50632def57fa02cbc9d54922 (diff) | |
download | hackvr-6a0446904ba495c0d4987a5e9b70143484bf6dcf.tar.gz hackvr-6a0446904ba495c0d4987a5e9b70143484bf6dcf.zip |
forgot to properly handle libidc calling the line handler on EOF with a null pointer.
Diffstat (limited to 'src')
-rw-r--r-- | src/hackvr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hackvr.c b/src/hackvr.c index ff60e84..5209376 100644 --- a/src/hackvr.c +++ b/src/hackvr.c @@ -153,7 +153,7 @@ int hackvr_handler(char *line) { c3_group_rot_t *gr; real tmpx,tmpy,tmpz; char **a; - char tmp[256]; + char tmp[256]; // radians tmpradx,tmprady,tmpradz; radians tmprady; @@ -161,7 +161,7 @@ int hackvr_handler(char *line) { //might use these so make command code easier to read. char *command; //char **args; - + if(!line) return -1;//EOF if(*line == '#') return 0; // fprintf(stderr,"# read command: %s\n",line); a=line_splitter(line,&len); |