strftime/wcsftime: use STRLEN, not strlen
Commit737e2004a3accidentally introduced a call to strlen in code used with wide character strings in case of wcsftime. Use STRLEN instead. Fixes:737e2004a3("strftime.c(__strftime): add %q, %v, tests; tweak %Z doc") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
		
							parent
							
								
									d3d63cecbb
								
							
						
					
					
						commit
						a8526cb52b
					
				| 
						 | 
				
			
			@ -1260,7 +1260,7 @@ recurse:
 | 
			
		|||
	       format. Recurse to avoid need to replicate %b and %Y formation. */
 | 
			
		||||
	    CHAR fmtbuf[32], *fmt = fmtbuf;
 | 
			
		||||
	    STRCPY (fmt, CQ("%e-%b-%"));
 | 
			
		||||
	    fmt += strlen (fmt);
 | 
			
		||||
	    fmt += STRLEN (fmt);
 | 
			
		||||
	    if (pad) /* '0' or '+' */
 | 
			
		||||
	      *fmt++ = pad;
 | 
			
		||||
	    else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue