Commit 74c5b714 authored by Steve Lhomme's avatar Steve Lhomme

core-c: fix var_stscanf_s when long int is specified

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/foundation_src@794 a6f86f6d-0131-4f8e-9e7b-e335508773d5
parent 3425127d
......@@ -682,7 +682,7 @@ static int var_stscanf_s(const tchar_t* In, size_t *InLen, const tchar_t* Mask,
int Sign;
bool_t Long=0;
size_t inlen = *InLen;
int v;
int64_t v;
int Width;
const tchar_t* In0;
......@@ -746,7 +746,10 @@ static int var_stscanf_s(const tchar_t* In, size_t *InLen, const tchar_t* Mask,
if (Sign) v=-v;
if (In != In0)
{
*va_arg(Arg,int*) = v;
if (Long)
*va_arg(Arg,int64_t*) = v;
else
*va_arg(Arg,int*) = v;
++n;
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment