mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-03 16:46:18 +00:00 
			
		
		
		
	Don't try to print unterminated strings when loading configuration file.
This commit is contained in:
		
							
								
								
									
										2
									
								
								cfg.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								cfg.c
									
									
									
									
									
								
							@@ -105,7 +105,7 @@ load_cfg(const char *path, struct cmd_ctx *ctx, struct causelist *causes)
 | 
				
			|||||||
		/* Trim \n. */
 | 
							/* Trim \n. */
 | 
				
			||||||
		if (buf[len - 1] == '\n')
 | 
							if (buf[len - 1] == '\n')
 | 
				
			||||||
			len--;
 | 
								len--;
 | 
				
			||||||
		log_debug ("%s: %s", path, buf);
 | 
							log_debug("%s: %.*s", path, (int)len, buf);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Current line is the continuation of the previous one. */
 | 
							/* Current line is the continuation of the previous one. */
 | 
				
			||||||
		if (line != NULL) {
 | 
							if (line != NULL) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user