From 1d2d226f01701e4a6409a16a628dbfa7f364568f Mon Sep 17 00:00:00 2001
From: Thomas Chou <thomas@wytron.com.tw>
Date: Sun, 2 Dec 2007 16:29:30 +0800
Subject: [PATCH] sash: replace legacy bcopy/bzero/bcmp/index/rindex

bcopy/bzero/bcmp/index/rindex are marked LEGACY in SuSv3.
They are replaced as proposed by SuSv3.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
 user/sash/sash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/user/sash/sash.c b/user/sash/sash.c
index 24fbddb..b14c7f5 100644
--- a/user/sash/sash.c
+++ b/user/sash/sash.c
@@ -502,7 +502,7 @@ command(cmd)
 	 * BASH-style variable setting
 	 */
 	if (argc == 1) {
-		c = index(argv[0], '=');
+		c = strchr(argv[0], '=');
 		if (c > argv[0]) {
 			*c++ = '\0';
 			setenv(argv[0], c, 1);
-- 
1.5.3.3

