OSDN Git Service
(root)
/
dtxmania
/
dtxmania.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32d90ac
)
#39661 [Dridi's PATCH 5/9] Avoid array overflow of the CSV header
author
yyagi
<yyagi.dtxmania@gmail.com>
Mon, 7 Oct 2019 14:11:32 +0000
(23:11 +0900)
committer
yyagi
<yyagi.dtxmania@gmail.com>
Mon, 7 Oct 2019 14:11:32 +0000
(23:11 +0900)
DTXMania/コード/全体/CResources.cs
patch
|
blob
|
history
diff --git
a/DTXMania/コード/全体/CResources.cs
b/DTXMania/コード/全体/CResources.cs
index
89d7187
..
5d278fd
100644
(file)
--- a/
DTXMania/コード/全体/CResources.cs
+++ b/
DTXMania/コード/全体/CResources.cs
@@
-292,7
+292,7
@@
namespace DTXMania
}
else
{
- for (
int i = 0; i < fields.GetLength( 0 ); i++
)
+ for (
int i = 0; i < Math.Min(fields.Length, csvHeader.Length); i++
)
{
string key = strItemName + "." + csvHeader[ i ];
string value = fields[ i ];