/programs/cmm/lib/draw_buf.h |
---|
25,12 → 25,9 |
}; |
char draw_buf_not_enaught_ram[] = |
"'DrawBufer needs more memory than currenly available. |
Application could be unstable. |
"'DrawBufer requested %i MB more memory than the system has. |
Application could be unstable.' -E"; |
Requested size: %i Mb |
Free RAM: %i Mb' -E"; |
bool DrawBufer::Init(dword i_bufx, i_bufy, i_bufw, i_bufh) |
{ |
bufx = i_bufx; |
189,8 → 186,8 |
} |
free_ram_size = GetFreeRAM() * 1024; |
if (alloc_size >= free_ram_size) { |
sprintf(#error_str, #draw_buf_not_enaught_ram, alloc_size/1048576, free_ram_size/1048576); |
if (alloc_size > free_ram_size) { |
sprintf(#error_str, #draw_buf_not_enaught_ram, alloc_size - free_ram_size/1048576); |
notify(#error_str); |
} |
} |
/programs/cmm/lib/obj/http.h |
---|
207,9 → 207,9 |
IF (!strncmp(new_URL,"//", 2)) |
{ |
strcpy(#newurl, "http:"); |
strcat(#newurl, new_URL); |
strcpy(orig_URL, #newurl); |
strncpy(#newurl, "http:", URL_SIZE); |
strncat(#newurl, new_URL, URL_SIZE); |
strncpy(orig_URL, #newurl, URL_SIZE); |
return orig_URL; |
} |
236,10 → 236,10 |
goto _CUT_ST_LEVEL_MARK; |
} |
if (newurl[strlen(#newurl)-1]<>'/') strcat(#newurl, "/"); |
if (newurl[strlen(#newurl)-1]<>'/') strncat(#newurl, "/", URL_SIZE); |
strcat(#newurl, new_URL); |
strcpy(orig_URL, #newurl); |
strncat(#newurl, new_URL, URL_SIZE); |
strncpy(orig_URL, #newurl, URL_SIZE); |
return orig_URL; |
} |