Revert last change

This commit is contained in:
rfm 2024-11-17 15:03:22 +00:00
parent 7cff5fc106
commit 90082eccac
2 changed files with 2 additions and 8 deletions

View file

@ -1770,13 +1770,7 @@ NSDictionary *locale)
if (-1 == prec)
{
/* Find end of string, within the specified limit.
*/
len = 0;
while (str[len] != '\0' && len < width)
{
len++;
}
len = strlen(str); // Number of bytes to convert.
blen = len; // Size of unichar output buffer.
}
else

View file

@ -73,7 +73,7 @@ NSLog(@"Got %ld on %p", (long int)streamEvent, theStream);
NSLog(@"%@", [defaultInput streamError]);
NSAssert([defaultInput streamError]==nil, @"read error");
}
if (readSize == 0)
else if (readSize == 0)
{
[defaultInput close];
[defaultInput removeFromRunLoop: [NSRunLoop currentRunLoop]