minor modification
This commit is contained in:
		
							
								
								
									
										5
									
								
								dmenu.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								dmenu.c
									
									
									
									
									
								
							@@ -396,10 +396,7 @@ kpress(XKeyEvent * e) {
 | 
				
			|||||||
	default:
 | 
						default:
 | 
				
			||||||
		if(num && !iscntrl((int) buf[0])) {
 | 
							if(num && !iscntrl((int) buf[0])) {
 | 
				
			||||||
			buf[num] = 0;
 | 
								buf[num] = 0;
 | 
				
			||||||
			if(len > 0)
 | 
								strncpy(text + len, buf, sizeof text - len);
 | 
				
			||||||
				strncat(text, buf, sizeof text);
 | 
					 | 
				
			||||||
			else
 | 
					 | 
				
			||||||
				strncpy(text, buf, sizeof text);
 | 
					 | 
				
			||||||
			match(text);
 | 
								match(text);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user