- Also fixed dialog parent, warning
{
if(count > pidColumn && count > ppidColumn && strtoul(tokens[ppidColumn], null, 0) == parentProcessId)
{
- pid = strtoul(tokens[pidColumn], null, 0);
+ pid = (uint)strtoul(tokens[pidColumn], null, 0);
break;
}
}
char * s;
s = PrintString($"The ", fileName, $" file is not part of any project.\n",
$"It can't be compiled.");
- MessageBox { type = ok, parent = ide, master = ide, text = $"File not in project error", contents = s }.Modal();
+ MessageBox { type = ok, /*parent = ide, */master = ide, text = $"File not in project error", contents = s }.Modal();
delete s;
return false;
}
char * string = this;
char actualString[8196];
int c, len = 0;
- for(c = 0; (ch = string[c]); c++)
+ for(c = 0; (ch = string[c]) && len < sizeof(actualString)-1; c++)
{
if(ch == '\t') { actualString[len++] = '\\'; actualString[len++] = 't'; }
else if(ch == '\r') { actualString[len++] = '\\'; actualString[len++] = 'r'; }