From e25191fa0b244f488d867dbaa78a57a41796db8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Wed, 25 Feb 2009 20:07:27 +0000 Subject: [PATCH] [ 2635979 ] Replace index() to strchr() git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1441 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 4 ++++ jtag/src/svf/svf_flex.l | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 8ed488c1..531846b8 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,7 @@ +2009-02-25 Arnim Laeuger + + * src/svf/svf_flex.l: [ 2635979 ] Replace index() to strchr() + 2009-02-23 Arnim Laeuger * src/tap/usbconn/libftdi.c, src/tap/usbconn/libftd2xx.c: diff --git a/jtag/src/svf/svf_flex.l b/jtag/src/svf/svf_flex.l index 4b9a90c6..f7730651 100644 --- a/jtag/src/svf/svf_flex.l +++ b/jtag/src/svf/svf_flex.l @@ -101,7 +101,7 @@ COMMENT (!.*)|("//".*)[^\n] on the locale settings. */ if (real_string) { - char *point_pos = index(real_string, '.'); + char *point_pos = strchr(real_string, '.'); YY_EXTRA_TYPE extra = yyget_extra(yyscanner); if (point_pos)