- minor sprintfSExt

parent 9b4a1ce1
2018/06/19 09:52:35 ==========================================
scp: copied local directory to segfs and /tmp_14_days:
from: [../../install/] and [./bat/]
to: [blissadm@lid00a:/segfs/bliss/projects/LIMA/build/depot_win/win_vc9/pco/install-2018-06-19_095229]
to: [/t/rhoms1/install-2018-06-19_095229]
to: [/t/rhoms1/install-beta]
2018/06/18 15:32:33 ==========================================
#define PCO_SDK_LIN_VERSION "$Id: PCOSDK_LIN [pcoDev.1.1.14] $"
......
......@@ -3243,10 +3243,6 @@ double usElapsedTimeTicsPerSec() {
}
//==========================================================================================================
//==========================================================================================================
//==========================================================================================================
//==========================================================================================================
......@@ -3266,15 +3262,26 @@ int __sprintfSExt(char* ptr, size_t nrMax, const char* format, ...)
va_start (args, format);
nr = vsnprintf_s(ptr, nrMax, _TRUNCATE, format, args);
//DEB_ALWAYS() << "+++ " << DEB_VAR4(nr, nrMax, ptr, format);
va_end (args);
if(nr <= 0)
if(nr >= 0)
{
*ptr = 0;
return 0;
*(ptr+nr) = 0;
return nr;
}
return nr;
if(nrMax >1)
{
*ptr = '@';
*(ptr+1) = 0;
return 1;
}
*ptr = 0;
return 0;
}
//==========================================================================================================
//==========================================================================================================
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