<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">Kouhei Sutou <kou****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2015-04-15 23:58:51 +0900 (Wed, 15 Apr 2015)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8">1ca380c7892520fdb0d15c7e6371e1b8986eefd8</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">windows: use strncpy_s() on Windows</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#diff-0">include/groonga/portability.h</a></li>
<li><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#diff-1">lib/db.c</a></li>
<li><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#diff-2">lib/io.c</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: include/groonga/portability.h (+8 -0)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0L90">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0L91">91</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0L92">92</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0L93">93</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0L94">94</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0R90">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0R91">91</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0R92">92</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0R93">93</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0R94">94</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0R95">95</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0R96">96</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0R97">97</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0R98">98</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0R99">99</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0R100">100</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0R101">101</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L0R102">102</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -91,4 +91,12 @@</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> strncat((dest), (src), (n))</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #endif /* WIN32 */</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+#ifdef WIN32</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+# define grn_strncpy(dest, dest_size, src, n) \</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ strncpy_s((dest), (dest_size), (src), (n))</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+#else /* WIN32 */</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+# define grn_strncpy(dest, dest_size, src, n) \</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ strncpy((dest), (src), (n))</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+#endif /* WIN32 */</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #endif /* GROONGA_PORTABILITY_H */</span>
</pre>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/db.c (+4 -1)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1L7504">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1L7505">7505</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1L7506">7506</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1L7507">7507</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1L7508">7508</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1L7509">7509</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1L7510">7510</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1L7511">7511</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1R7504">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1R7505">7505</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1R7506">7506</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1R7507">7507</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1R7508">7508</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1R7509">7509</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1R7510">7510</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1R7511">7511</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1R7512">7512</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1R7513">7513</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L1R7514">7514</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -7505,7 +7505,10 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_obj_set_info_source_validate_report_error(grn_ctx *ctx,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> GRN_TABLE_MAX_KEY_SIZE);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_obj_unlink(ctx, source_type);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> } else {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- strncpy(source_type_name, "(nil)", GRN_TABLE_MAX_KEY_SIZE);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ grn_strncpy(source_type_name,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ GRN_TABLE_MAX_KEY_SIZE,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "(nil)",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ GRN_TABLE_MAX_KEY_SIZE);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> source_type_name_size = strlen(source_type_name);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ERR(GRN_INVALID_ARGUMENT,</span>
</pre>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/io.c (+2 -2)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L300">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L301">301</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L302">302</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L303">303</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L304">304</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L305">305</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L306">306</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L307">307</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L552">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L553">553</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L554">554</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L555">555</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L556">556</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L557">557</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L558">558</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2L559">559</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R300">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R301">301</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R302">302</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R303">303</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R304">304</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R305">305</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R306">306</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R307">307</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R552">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R553">553</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R554">554</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R555">555</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R556">556</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R557">557</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R558">558</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/1ca380c7892520fdb0d15c7e6371e1b8986eefd8#L2R559">559</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -301,7 +301,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_io_create(grn_ctx *ctx, const char *path, uint32_t header_size, uint32_t seg</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if ((io = GRN_GMALLOCN(grn_io, 1))) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_io_mapinfo *maps = NULL;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if ((maps = GRN_GCALLOC(sizeof(grn_io_mapinfo) * max_segment))) {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- strncpy(io->path, path, PATH_MAX);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ grn_strncpy(io->path, PATH_MAX, path, PATH_MAX);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> io->header = header;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> io->user_header = (((byte *) header) + IO_HEADER_SIZE);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> io->maps = maps;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -553,7 +553,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_io_open(grn_ctx *ctx, const char *path, grn_io_mode mode)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if ((io = GRN_GMALLOC(sizeof(grn_io)))) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_io_mapinfo *maps = NULL;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if ((maps = GRN_GCALLOC(sizeof(grn_io_mapinfo) * max_segment))) {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- strncpy(io->path, path, PATH_MAX);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ grn_strncpy(io->path, PATH_MAX, path, PATH_MAX);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> io->header = header;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> io->user_header = (((byte *) header) + IO_HEADER_SIZE);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>