1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

Ensure HEAD is also up to date.

Fix OOPS when dealing with mangled names reported by several users.
This was my bug when removing a redundant strlen.
Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent cdfc0fc383
commit 3b3e19f66f

View File

@ -53,7 +53,7 @@
#include "includes.h"
#if 0
#if 1
#define M_DEBUG(level, x) DEBUG(level, x)
#else
#define M_DEBUG(level, x)
@ -219,7 +219,7 @@ static BOOL is_mangled_component(const char *name, size_t len)
if (len > 8) {
if (name[8] != '.')
return False;
for (i=9; name[i]; i++) {
for (i=9; name[i] && i < len; i++) {
if (! FLAG_CHECK(name[i], FLAG_ASCII)) {
return False;
}