From be18fa229c226e27b768289ada381eafa6809a57 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ra=C3=BAl=20Mar=C3=ADn=20Rodr=C3=ADguez?= Date: Mon, 24 Sep 2018 11:13:47 +0000 Subject: [PATCH] Address compiler warning strlcpy isn't a standard function git-svn-id: http://svn.osgeo.org/postgis/trunk@16842 b70326c6-7e19-0410-871a-916f4a2858ee --- extensions/address_standardizer/tokenize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/address_standardizer/tokenize.c b/extensions/address_standardizer/tokenize.c index 1dd9554c4..e290c9c64 100644 --- a/extensions/address_standardizer/tokenize.c +++ b/extensions/address_standardizer/tokenize.c @@ -979,7 +979,7 @@ static int phrase_from_morphs( struct morph *morph_vector , a ; BLANK_STRING(Dest) ; - strlcpy(Dest, morph_vector[beg].Text, MAXTEXT); + snprintf(Dest, MAXTEXT, "%s", morph_vector[beg].Text); for ( i = beg + 1 ; i <= end ; i++ ) { -- 2.40.0