Update of /cvsroot/opengtoolkit/serial/c_source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16411/c_source
Modified Files:
lvserial.c
Log Message:
lvCommGetPortName() crashes if it is called with an invalif comm handle. The reason is, that the function did not return after detecting this error an tries to
copy anything into the target string. The problem is fixed.
Index: lvserial.c
===================================================================
RCS file: /cvsroot/opengtoolkit/serial/c_source/lvserial.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** lvserial.c 23 Jul 2005 09:17:44 -0000 1.1
--- lvserial.c 28 Aug 2005 13:26:55 -0000 1.2
***************
*** 5857,5860 ****
--- 5857,5861 ----
(*shOriginal)->cnt = 0;
lv_EasyErrBld(COMM_ERR_HANDLE, __FUNCTION__, pError);
+ return;
}
|