Revision: 2700
          http://tmux.svn.sourceforge.net/tmux/?rev=2700&view=rev
Author:   tcunha
Date:     2012-02-15 19:30:51 +0000 (Wed, 15 Feb 2012)
Log Message:
-----------
Sync OpenBSD patchset 1026:

Check for the right return value from sscanf.

Modified Paths:
--------------
    trunk/layout-custom.c

Modified: trunk/layout-custom.c
===================================================================
--- trunk/layout-custom.c       2012-02-15 19:30:17 UTC (rev 2699)
+++ trunk/layout-custom.c       2012-02-15 19:30:51 UTC (rev 2700)
@@ -207,7 +207,7 @@
 
        if (!isdigit((u_char) **layout))
                return (NULL);
-       if (sscanf(*layout, "%ux%u,%u,%u,%*u", &sx, &sy, &xoff, &yoff) != 5 &&
+       if (sscanf(*layout, "%ux%u,%u,%u,%*u", &sx, &sy, &xoff, &yoff) != 4 &&
            sscanf(*layout, "%ux%u,%u,%u", &sx, &sy, &xoff, &yoff) != 4)
                return (NULL);
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to