From 7b009410dda270915a4b8a0cf9302d7b9147e45d Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Wed, 31 Dec 2003 01:08:43 +0000 Subject: [PATCH] Fix a bug: if a new string was greater than all current ones in atomizer vector, was misplaced one place upper. Doh! git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5841 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/generic/atomizer/atomizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/generic/atomizer/atomizer.c b/src/add-ons/kernel/generic/atomizer/atomizer.c index 10da6af6c5..4db4cdf24e 100644 --- a/src/add-ons/kernel/generic/atomizer/atomizer.c +++ b/src/add-ons/kernel/generic/atomizer/atomizer.c @@ -302,7 +302,7 @@ atomize(const void * at, const char *string, int create) { if (test < 0) high = index; else if (test > 0) - low = index + 1; + low = ++index; // if we exit the while loop here, use index + 1 else break; }