[Gridflow-cvs] [svn] commit: r5413 - /trunk/src/videodev.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Fri Apr 9 00:05:21 EDT 2010


Author: matju
Date: Fri Apr  9 00:05:20 2010
New Revision: 5413

Log:
fix double decrement in getting camera's name

Modified:
    trunk/src/videodev.cxx

Modified: trunk/src/videodev.cxx
==============================================================================
--- trunk/src/videodev.cxx (original)
+++ trunk/src/videodev.cxx Fri Apr  9 00:05:20 2010
@@ -667,7 +667,7 @@
 	char buf[33];
 	memcpy(buf,vcaps.name,32);
 	int i;
-	for (i=31; buf[i] && !isspace(buf[i]); i--) buf[i--]=0;
+	for (i=31; buf[i] && !isspace(buf[i]); i--) buf[i]=0;
 	for (i=0; buf[i]; i++) {
 		if (isspace(buf[i])) buf[i]='_';
 		if (buf[i]=='(') buf[i]='[';



More information about the Gridflow-cvs mailing list