aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/tinylogin/tinylogin-1.4/remove-index.patch
blob: 9d3c3242daaf3e332dee3c254285e424d37db061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Upstream-Status: Inappropriate [legacy version]

--- /tmp/deluser.c	2007-05-13 10:38:19.000000000 +0200
+++ tinylogin-1.4/deluser.c	2007-05-13 10:38:50.185251000 +0200
@@ -60,7 +60,7 @@
 	}
 	start++;
 
-	stop = index(start, '\n');	/* index is a BSD-ism */
+	stop = strchr(start, '\n');	/* index is a BSD-ism, strchr hopefully isn't */
 	b.start = start - buffer;
 	b.stop = stop - buffer;
 	return b;