mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	21352: Harald van Dijk: handle null after % in printf format specifier
This commit is contained in:
		
							parent
							
								
									2a176ec84e
								
							
						
					
					
						commit
						14bfaab3ef
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -3653,7 +3653,7 @@ bin_print(char *name, char **args, Options ops, int func) | |||
| 	     | ||||
| 	    /* copy only one of each flag as spec has finite size */ | ||||
| 	    memset(flags, 0, sizeof(flags)); | ||||
| 	    while ((flag = strchr(flagch, *c))) { | ||||
| 	    while (*c && (flag = strchr(flagch, *c))) { | ||||
| 	    	if (!flags[flag - flagch]) { | ||||
| 	    	    flags[flag - flagch] = 1; | ||||
| 		    *d++ = *c; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue