mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #1379 from karjonas/variable_matching
Fix issue #1287
This commit is contained in:
		
						commit
						839064d278
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -30,7 +30,7 @@ struct cmd_results *cmd_set(int argc, char **argv) {
 | 
				
			||||||
		if (!tmp) {
 | 
							if (!tmp) {
 | 
				
			||||||
			return cmd_results_new(CMD_FAILURE, "set", "Not possible to create variable $'%s'", argv[0]);
 | 
								return cmd_results_new(CMD_FAILURE, "set", "Not possible to create variable $'%s'", argv[0]);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		snprintf(tmp, size, "$%s", argv[0]);
 | 
							snprintf(tmp, size+1, "$%s", argv[0]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		argv[0] = tmp;
 | 
							argv[0] = tmp;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue