mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fixed %w format in description to output a single digit number rather
than a two digit one git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10044 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b45f9f3970
commit
fb86303de2
1 changed files with 2 additions and 2 deletions
|
@ -1371,10 +1371,10 @@ static inline int getDigits(const char *from, char *to, int limit)
|
|||
k = VSPRINTF_LENGTH(sprintf(&(buf[j]), "%s",
|
||||
[name cString]));
|
||||
else
|
||||
k = VSPRINTF_LENGTH(sprintf(&(buf[j]), "%02d", dow));
|
||||
k = VSPRINTF_LENGTH(sprintf(&(buf[j]), "%01d", dow));
|
||||
}
|
||||
else
|
||||
k = VSPRINTF_LENGTH(sprintf(&(buf[j]), "%02d", dow));
|
||||
k = VSPRINTF_LENGTH(sprintf(&(buf[j]), "%01d", dow));
|
||||
j += k;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue