summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2015-05-22 11:53:48 +1000
committerAlex Gorrod <alexg@wiredtiger.com>2015-05-22 11:53:48 +1000
commitfceaaa105e475f7bfc8d9cfa40edd8b6ebcfd663 (patch)
tree7f40b599e052eef1f2ec0cdf136d8e710ff03ce3 /ext
parent1484fc2c321bd65e1fe04905192b40ba08a9771b (diff)
downloadmongo-fceaaa105e475f7bfc8d9cfa40edd8b6ebcfd663.tar.gz
Fix gcc 4.7 compiler warning.
Diffstat (limited to 'ext')
-rw-r--r--ext/extractors/csv/csv_extractor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/extractors/csv/csv_extractor.c b/ext/extractors/csv/csv_extractor.c
index f2c5e89d09e..0dd110955ad 100644
--- a/ext/extractors/csv/csv_extractor.c
+++ b/ext/extractors/csv/csv_extractor.c
@@ -90,7 +90,7 @@ csv_extract(WT_EXTRACTOR *extractor, WT_SESSION *session,
* is not necessarily NULL-terminated. So make a copy, just
* for the duration of the insert.
*/
- len = pend - p;
+ len = (size_t)(pend - p);
if ((copy = malloc(len + 1)) == NULL)
return (errno);
strncpy(copy, p, len);