bug in tmrs when no street number
Status: Alpha
Brought to you by:
sbirla
j is not set here, so you can't use it.
--- tmrs.c 20 Jun 2004 01:58:14 -0000 1.2
+++ tmrs.c 23 Sep 2004 04:00:13 -0000
@@ -360,8 +360,8 @@
if (street_number == 0)
{
format_street_name(str, i);
- sprintf(str2, "A:%d:x %s:%d,%d\n", j, str,
segment[j].StartPoint.Latitude,
- segment[j].StartPoint.Longitude);
+ sprintf(str2, "A:%d:x %s:%d,%d\n", i, str,
segment[i].StartPoint.Latitude,
+ segment[i].StartPoint.Longitude);
pSink->sink(pSink->context, str2, strlen(str2));
++match_count;
continue;