Update of /cvsroot/tmux/tmux
In directory vz-cvs-2.sog:/tmp/cvs-serv27706
Modified Files:
tmux.c
Log Message:
Fix sscanf that was guaranteed to always fail.
Index: tmux.c
===================================================================
RCS file: /cvsroot/tmux/tmux/tmux.c,v
retrieving revision 1.236
retrieving revision 1.237
diff -u -d -r1.236 -r1.237
--- tmux.c 14 Feb 2011 23:11:33 -0000 1.236
+++ tmux.c 4 Mar 2011 23:13:56 -0000 1.237
@@ -135,7 +135,7 @@
if ((env = getenv("TMUX")) == NULL)
return;
- if (sscanf(env, "%255s,%ld,%d", path, &pid, &idx) != 3)
+ if (sscanf(env, "%255[^,],%ld,%d", path, &pid, &idx) != 3)
return;
environ_path = xstrdup(path);
environ_pid = pid;
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs