Revision: 2777
          http://tmux.svn.sourceforge.net/tmux/?rev=2777&view=rev
Author:   tcunha
Date:     2012-04-24 16:18:35 +0000 (Tue, 24 Apr 2012)
Log Message:
-----------
Sync OpenBSD patchset 1095:

Fix printing commands with no arguments, from Benjamin Poirier.

Modified Paths:
--------------
    trunk/cmd.c

Modified: trunk/cmd.c
===================================================================
--- trunk/cmd.c 2012-04-24 16:17:57 UTC (rev 2776)
+++ trunk/cmd.c 2012-04-24 16:18:35 UTC (rev 2777)
@@ -303,11 +303,10 @@
        if (off < len) {
                used = args_print(cmd->args, buf + off, len - off);
                if (used == 0)
-                       buf[off - 1] = '\0';
-               else {
+                       off--;
+               else
                        off += used;
-                       buf[off] = '\0';
-               }
+               buf[off] = '\0';
        }
        return (off);
 }

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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-cvs mailing list
tmux-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to