1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

r13231: apparently strncat() is converted to strcat() on RH7.3 and similar systems. Fix the build on those boxes

This commit is contained in:
Gerald Carter 2006-01-30 17:42:42 +00:00 committed by Gerald (Jerry) Carter
parent 485f037094
commit 0b8ed8136b

View File

@ -29,6 +29,7 @@ const char *samba_version_string(void)
static fstring samba_version;
fstring tmp_version;
static BOOL init_samba_version;
size_t remaining;
if (init_samba_version)
return samba_version;
@ -38,8 +39,9 @@ const char *samba_version_string(void)
SAMBA_VERSION_VENDOR_SUFFIX);
#ifdef SAMBA_VENDOR_PATCH
fstr_sprintf( tmp_version, "-%d", SAMBA_VENDOR_PATCH );
fstrcat( samba_version, tmp_version );
remaining = sizeof(samba_version)-strlen(samba_version);
snprintf( tmp_version, sizeof(tmp_version), "-%d", SAMBA_VENDOR_PATCH );
strlcat( samba_version, tmp_version, remaining-1 );
#endif
init_samba_version = True;