Bug 386

Summary: *s field width specification for printf seems to loop
Product: Base System Reporter: Jordan K. Hubbard <jkh>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Jordan K. Hubbard 1995-05-06 18:50:00 UTC
	Try this:  printf "%8*s" foobarblatt

	It will loop forever.  The man page would tend to indicate that it,
	or perhaps rather %*8s, should print the arg truncated to 8 characters.
	Either way, it shouldn't loop.

How-To-Repeat: 
	See above.
Comment 1 Joerg Wunsch freebsd_committer 1995-05-07 08:04:22 UTC
State Changed
From-To: open->closed

Mostly pilot error; the syntax checking for the argument string has been 
made more strict with version 1.2 of printf.c, so "%*8s" is no longer 
considered to be a valid format string.