Date: Sat, 6 Nov 1999 06:58:37 -0800 (PST) From: peter@wahoo.com.tw To: freebsd-gnats-submit@freebsd.org Subject: misc/14742: setlocale function call can't terminate Message-ID: <19991106145837.77D8A14C49@hub.freebsd.org>
index | next in thread | raw e-mail
>Number: 14742
>Category: misc
>Synopsis: setlocale function call can't terminate
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Nov 6 07:00:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Peter Hung
>Release: FreeBSD-Current
>Organization:
>Environment:
FreeBSD phantom.wahoo.com.tw 4.0-CURRENT FreeBSD 4.0-CURRENT #0:
>Description:
>How-To-Repeat:
>Fix:
Increase variable 'i' in while loop.
--- /usr/src/lib/libc/locale/setlocale.c Sat Aug 28 07:59:58 1999
+++ setlocale.c Sat Nov 6 17:52:05 1999
@@ -169,9 +169,11 @@
++locale;
while (*++r && *r != '/');
} while (*locale);
- while (i < _LC_LAST)
+ while (i < _LC_LAST) {
(void)strcpy(new_categories[i],
new_categories[i-1]);
+ ++i;
+ }
}
}
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991106145837.77D8A14C49>
