----------------------------------------------------------------------------------
@MSGID: 2:5030/723 67eaf5fd
@REPLY: 2:6035/3.2 30835f69
@CHRS: CP866 2
@TZUTC: 0300
Здраствуйте, Vladimir!
Вроде, работает и правильно обрезает строку:
https://disk.yandex.ru/i/fVoSPrPCynRx-A
Патч:
--- a/goldlib/gall/gstrutil.cpp 2025-03-31 21:33:29.077333559 +0300
+++ b/goldlib/gall/gstrutil.cpp 2025-03-31 16:23:53.277999722 +0300
@@ -876,9 +876,10 @@
}
else if (ret >= sizeOfBuffer)
{
- if (sizeOfBuffer>17) strcpy(buffer, " ERROR, see log! ");
- else if (sizeOfBuffer>7) strcpy(buffer," ERROR ");
- else buffer[sizeOfBuffer-1] = `\0`;
+// if (sizeOfBuffer>17) strcpy(buffer, " ERROR, see log! ");
+// else if (sizeOfBuffer>7) strcpy(buffer," ERROR ");
+// else buffer[sizeOfBuffer-1] = `\0`;
+ buffer[sizeOfBuffer-1] = `\0`;
LOG.printf("! %s", gerrinfo("Memory error", __file, __line));
LOG.printf("! gsprintf(buffer,%i,%s,...): buffer overflow (need %i
bytes).", sizeOfBuffer, format, ret);
}
Alexey Khromov
--- GoldED+/LNX 1.1.5-b20240604
* Origin: - Вы в опасности! Вы окружены роботами! - (2:5030/723)
SEEN-BY: 46/49 50/109 104/117 221/6 240/1120 267/67
301/1 341/66 451/31
SEEN-BY: 452/28 166 455/19 460/16 58 256 1124
5858 461/58 463/68 877 1331
SEEN-BY: 466/50 469/15 4500/1 4600/140 4651/777
5000/111 5001/100 5015/42 46
SEEN-BY: 5019/40 400 5020/101 113 545 715 830 846
848 1042 2992 4441 5480
SEEN-BY: 5020/12000 5022/128 5029/32 5030/49 115
723 1081 1474 5049/1 3
SEEN-BY: 5050/151 5053/51 58 5054/30 89 5058/104
5060/900 5061/133 5068/45
SEEN-BY: 5083/1 444 6078/80 6090/1
@PATH: 5030/723 460/58 463/68 5020/1042 4441