mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Use correct length for strncmp comparison
(cherry picked from commit 714559812e)
			
			
This commit is contained in:
		
							parent
							
								
									a249ef3c0e
								
							
						
					
					
						commit
						d7158ab984
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -292,7 +292,7 @@ static uint32_t render_status_block(struct render_context *ctx,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	double offset = 0;
 | 
						double offset = 0;
 | 
				
			||||||
	if (strncmp(block->align, "left", 5) == 0) {
 | 
						if (strncmp(block->align, "left", 4) == 0) {
 | 
				
			||||||
		offset = x_pos;
 | 
							offset = x_pos;
 | 
				
			||||||
	} else if (strncmp(block->align, "right", 5) == 0) {
 | 
						} else if (strncmp(block->align, "right", 5) == 0) {
 | 
				
			||||||
		offset = x_pos + width - text_width;
 | 
							offset = x_pos + width - text_width;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue