mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-24 13:31:37 +03:00
Update nominatim.c
This commit is contained in:
parent
8ee36fb78c
commit
4daa584b7d
@ -168,7 +168,7 @@ void str_replace(char* buffer, int* len, int* changes, char* from, int fromlen,
|
||||
p = strstr(buffer, from);
|
||||
while(p)
|
||||
{
|
||||
if (!isspace || p == buffer || *(p-1) != ' ')
|
||||
if (!isspace || (p > buffer && *(p-1) != ' '))
|
||||
{
|
||||
(*changes)++;
|
||||
if (tolen != fromlen) memmove(p+tolen, p+fromlen, *len-(p-buffer)+1);
|
||||
|
Loading…
Reference in New Issue
Block a user