Ignore:
Timestamp:
Nov 25, 2016, 8:04:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.7

Location:
vendor/current/lib/replace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/lib/replace/replace.h

    r988 r989  
    426426
    427427#ifndef PRINTF_ATTRIBUTE
    428 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     428#ifdef HAVE___ATTRIBUTE__
    429429/** Use gcc attribute to check printf fns.  a1 is the 1-based index of
    430430 * the parameter containing the format, and a2 the index of the first
     
    438438
    439439#ifndef _DEPRECATED_
    440 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
     440#ifdef HAVE___ATTRIBUTE__
    441441#define _DEPRECATED_ __attribute__ ((deprecated))
    442442#else
  • vendor/current/lib/replace/snprintf.c

    r988 r989  
    805805        int signvalue = 0;
    806806        unsigned LLONG uvalue;
    807         char convert[20];
     807        char convert[22+1]; /* 64-bit value in octal: 22 digits + \0 */
    808808        int place = 0;
    809809        int spadlen = 0; /* amount to space pad */
     
    835835                        [uvalue % (unsigned)base  ];
    836836                uvalue = (uvalue / (unsigned)base );
    837         } while(uvalue && (place < 20));
    838         if (place == 20) place--;
     837        } while(uvalue && (place < sizeof(convert)));
     838        if (place == sizeof(convert)) place--;
    839839        convert[place] = 0;
    840840
Note: See TracChangeset for help on using the changeset viewer.