[postgis-tickets] r16842 - Address compiler warning
Raul
raul at rmr.ninja
Mon Sep 24 04:13:47 PDT 2018
Author: algunenano
Date: 2018-09-24 04:13:47 -0700 (Mon, 24 Sep 2018)
New Revision: 16842
Modified:
trunk/extensions/address_standardizer/tokenize.c
Log:
Address compiler warning
strlcpy isn't a standard function
Modified: trunk/extensions/address_standardizer/tokenize.c
===================================================================
--- trunk/extensions/address_standardizer/tokenize.c 2018-09-24 10:58:53 UTC (rev 16841)
+++ trunk/extensions/address_standardizer/tokenize.c 2018-09-24 11:13:47 UTC (rev 16842)
@@ -979,7 +979,7 @@
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++ ) {
More information about the postgis-tickets
mailing list