Skip to content
Permalink
Browse files

avoid repeating the array dimension (followup e6f91ca)

  • Loading branch information
jef-n committed Feb 19, 2015
1 parent 5836d1d commit a94cadf5b8515ab0d30d880513b082ab4c344f90
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/spatialite/qgsspatialiteconnection.cpp
@@ -613,8 +613,8 @@ bool QgsSpatiaLiteConnection::isRasterlite1Datasource( sqlite3 * handle, const c
char table_raster[4192];
char sql[4192];

strncpy( table_raster, table, 4192 );
table_raster[4191] = '\0';
strncpy( table_raster, table, sizeof sql );
table_raster[ sizeof sql - 1 ] = '\0';

len = strlen( table_raster );
if ( strlen( table_raster ) < 9 )

0 comments on commit a94cadf

Please sign in to comment.
You can’t perform that action at this time.