mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	strdup() not necessary here.
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* $Id: server-msg.c,v 1.63 2009-02-11 17:50:35 nicm Exp $ */
 | 
					/* $Id: server-msg.c,v 1.64 2009-02-16 19:01:16 nicm Exp $ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
					 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
				
			||||||
@@ -200,7 +200,7 @@ server_msg_fn_identify(struct hdr *hdr, struct client *c)
 | 
				
			|||||||
		c->cwd = xstrdup(data.cwd);
 | 
							c->cwd = xstrdup(data.cwd);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	data.tty[(sizeof data.tty) - 1] = '\0';
 | 
						data.tty[(sizeof data.tty) - 1] = '\0';
 | 
				
			||||||
	tty_init(&c->tty, data.tty, xstrdup(term));
 | 
						tty_init(&c->tty, data.tty, term);
 | 
				
			||||||
	if (data.flags & IDENTIFY_UTF8)
 | 
						if (data.flags & IDENTIFY_UTF8)
 | 
				
			||||||
		c->tty.flags |= TTY_UTF8;
 | 
							c->tty.flags |= TTY_UTF8;
 | 
				
			||||||
	if (data.flags & IDENTIFY_256COLOURS)
 | 
						if (data.flags & IDENTIFY_256COLOURS)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* $Id: tty-term.c,v 1.14 2009-02-12 00:18:05 nicm Exp $ */
 | 
					/* $Id: tty-term.c,v 1.15 2009-02-16 19:01:16 nicm Exp $ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
					 * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
				
			||||||
@@ -218,9 +218,6 @@ tty_term_find(char *name, int fd, char **cause)
 | 
				
			|||||||
	for (i = 0; i < NTTYCODE; i++) {
 | 
						for (i = 0; i < NTTYCODE; i++) {
 | 
				
			||||||
		ent = &tty_term_codes[i];
 | 
							ent = &tty_term_codes[i];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//		if (ent->code == TTYC_CSR)/*XXX*/
 | 
					 | 
				
			||||||
//			continue;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		code = &term->codes[ent->code];
 | 
							code = &term->codes[ent->code];
 | 
				
			||||||
		code->type = TTYCODE_NONE;
 | 
							code->type = TTYCODE_NONE;
 | 
				
			||||||
		switch (ent->type) {
 | 
							switch (ent->type) {
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tty.c
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* $Id: tty.c,v 1.77 2009-02-13 19:45:16 nicm Exp $ */
 | 
					/* $Id: tty.c,v 1.78 2009-02-16 19:01:16 nicm Exp $ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
					 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
				
			||||||
@@ -245,7 +245,7 @@ tty_close(struct tty *tty, int no_stop)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	if (!no_stop)
 | 
						if (!no_stop)
 | 
				
			||||||
		tty_stop_tty(tty);
 | 
							tty_stop_tty(tty);
 | 
				
			||||||
 | 
						
 | 
				
			||||||
	tty_term_free(tty->term);
 | 
						tty_term_free(tty->term);
 | 
				
			||||||
	tty_keys_free(tty);
 | 
						tty_keys_free(tty);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user