Eliminato warning "Lavori in corso"
git-svn-id: svn://10.65.10.50/trunk@2204 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
6033ebb75a
commit
d573e74571
@ -748,13 +748,9 @@ word TString::hash() const
|
|||||||
|
|
||||||
// Certified 100%
|
// Certified 100%
|
||||||
TFixed_string::TFixed_string(const char* str, int size)
|
TFixed_string::TFixed_string(const char* str, int size)
|
||||||
: TString((char*)str, (size < 1) ? strlen(str) : size-1)
|
: TString((char*)str, (size <= 0) ? strlen(str) : size-1)
|
||||||
{
|
{
|
||||||
CHECK(str, "NULL buffer for fixed string");
|
CHECK(str, "NULL buffer for fixed string");
|
||||||
|
|
||||||
if (size == 301)
|
|
||||||
message_box("Lavori in corso");
|
|
||||||
|
|
||||||
if (size > 0 && memchr(str, '\0', size) == NULL)
|
if (size > 0 && memchr(str, '\0', size) == NULL)
|
||||||
cut(0);
|
cut(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user