~sysman-one/starlet/main

« back to all changes in this revision

Viewing changes to utility_routines.c

  • Committer: Ruslan (The BadAss SysMan) Laishev
  • Date: 2024-07-04 14:43:31 UTC
  • mfrom: (36.1.1)
  • Revision ID: git-v1:160dfcb2d7ccded743087bbefc1578eaad37b959
Merge branch 'devel' into 'master'

Improved checking buffer space

See merge request SysMan-One/utility_routines!2

Show diffs side-by-side

added added

removed removed

Lines of Context:
408
408
                        _tm.tm_hour, _tm.tm_min, _tm.tm_sec, (unsigned) now.tv_nsec/TIMSPECDEVIDER,
409
409
                        (unsigned) __gettid(), __fi, __li);
410
410
 
 
411
        olen = $MIN(UTIL$SZ_OUTBUF, olen);
 
412
 
411
413
        if ( 1 & __util$getmsg(sts, &msgrec) )                          /* Retreive the message record */
412
414
                {
413
415
                va_start (arglist, __li);                               /* Fromat text message */
421
423
                }
422
424
 
423
425
 
 
426
        olen = $MIN(UTIL$SZ_OUTBUF, olen);
 
427
 
424
428
        /* Add <LF> at end of record*/
425
429
        out[olen++] = '\n';
426
430