Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Aug 2007 12:45:07 GMT
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 125263 for review
Message-ID:  <200708171245.l7HCj7wM031637@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=125263

Change 125263 by rpaulo@rpaulo_alpha on 2007/08/17 12:44:58

	snprintf(3) doesn't need 'size - 1'.

Affected files ...

.. //depot/projects/soc2007/rpaulo-macbook/dev/asmc/asmc.c#30 edit

Differences ...

==== //depot/projects/soc2007/rpaulo-macbook/dev/asmc/asmc.c#30 (text+ko) ====

@@ -23,7 +23,7 @@
  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  *
- * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/asmc/asmc.c#29 $
+ * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/asmc/asmc.c#30 $
  *
  */
 
@@ -897,7 +897,7 @@
 		type = 255;
 	}
 
-	snprintf(notify, sizeof(notify) - 1, " notify=0x%x", type);
+	snprintf(notify, sizeof(notify), " notify=0x%x", type);
 
 	devctl_notify("ISA", "asmc", "SMS", notify); 
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708171245.l7HCj7wM031637>