PERFORCE change 170446 for review

Alexander Motin mav at FreeBSD.org
Tue Nov 10 20:57:50 UTC 2009


http://p4web.freebsd.org/chv.cgi?CH=170446

Change 170446 by mav at mav_mavbook on 2009/11/10 20:57:01

	Addition to previous commit.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/cam.c#13 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/cam/cam.c#13 (text+ko) ====

@@ -165,8 +165,12 @@
 		str++;
 		str_len--;
 	}
-	while (str_len > 0 && *str++ == ' ')
+	while (str_len > 0 && *str == ' ') {
+		str++;
 		str_len--;
+	}
+	if (str_len > 0 && *str == 0)
+		str_len = 0;
 
 	return (str_len);
 }


More information about the p4-projects mailing list