More cisco-compatibility.
FossilOrigin-Name: 04ec8be34c8f04e70ce803fb8f47f72f426bdc7cf85edced8f09d3a9f1f0c50d
This commit is contained in:
@ -31,13 +31,13 @@ uint8_t * bstr_create_from_cfgstr(const char * s)
|
||||
|
||||
|
||||
if (s[0]!='.')
|
||||
return bstr_create((uint8_t*)s,l+1);
|
||||
return bstr_create((uint8_t*)s,l);
|
||||
|
||||
if (l<=2)
|
||||
return bstr_create((uint8_t*)s,l+1);
|
||||
return bstr_create((uint8_t*)s,l);
|
||||
|
||||
if (s[1]=='.')
|
||||
return bstr_create((uint8_t*)s+1,l);
|
||||
return bstr_create((uint8_t*)s+1,l-1);
|
||||
|
||||
if (s[1]=='x'){
|
||||
uint8_t * ns=0;
|
||||
|
Reference in New Issue
Block a user