[Libphidget-cvs-commits] CVS: libphidget/src/examples phidget_cpp.cc,1.5,1.6 servo_example.cc,1.5,1.
Status: Alpha
Brought to you by:
jstrohm
From: Jack S. <js...@us...> - 2002-09-17 01:40:34
|
Update of /cvsroot/libphidget/libphidget/src/examples In directory usw-pr-cvs1:/tmp/cvs-serv16330 Modified Files: phidget_cpp.cc servo_example.cc Log Message: Fixed problem where printing version numbers were not null terminated properly. Index: phidget_cpp.cc =================================================================== RCS file: /cvsroot/libphidget/libphidget/src/examples/phidget_cpp.cc,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** phidget_cpp.cc 16 Sep 2002 23:37:07 -0000 1.5 --- phidget_cpp.cc 17 Sep 2002 01:40:31 -0000 1.6 *************** *** 379,382 **** --- 379,383 ---- char adjusted_version[64]; memcpy(adjusted_version,revision+11,strlen(revision)-11-2); + adjusted_version[strlen(revision)-11-2]=0; // What we are Index: servo_example.cc =================================================================== RCS file: /cvsroot/libphidget/libphidget/src/examples/servo_example.cc,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** servo_example.cc 16 Sep 2002 06:45:42 -0000 1.5 --- servo_example.cc 17 Sep 2002 01:40:31 -0000 1.6 *************** *** 199,202 **** --- 199,203 ---- char adjusted_version[64]; memcpy(adjusted_version,revision+11,strlen(revision)-11-2); + adjusted_version[strlen(revision)-11-2]=0; // What we are |