diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-11-29 19:19:21 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-11-29 19:19:21 +0000 |
| commit | a675c89dc330a87fe25970ffaeb7f0d3fe3d4c4d (patch) | |
| tree | 335ca646bcc0ad7076d5d8b01bebc0bfa6f76938 /mailapi.c | |
| parent | 7433c7760483fa8e9afe60171f356a518c2c474c (diff) | |
| parent | 57c66b1c61303720f6f82738c4a5bf038e9f4697 (diff) | |
Update upstream source from tag 'upstream/6.0.24.51.1+repack'
Update to upstream version '6.0.24.51.1+repack'
with Debian dir 345d0bf3b032c49bddcab85f05c65adc613a1710
Diffstat (limited to 'mailapi.c')
| -rw-r--r-- | mailapi.c | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -871,8 +871,9 @@ void SendBBSDataToPktMap() {
char Return[4096];
char Request[64];
- char Params[50000];
- char * ptr = Params;
+ char * Params;
+ char * ptr;
+ int paramLen;
struct MsgInfo * Msg;
struct UserInfo * ourBBSRec = LookupCall(BBSName);
@@ -1067,6 +1068,17 @@ int unroutableCount = 0; tm->tm_year + 1900, tm->tm_mon+1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
+ paramLen = strlen(Peers) + strlen(MsgQueues) + strlen(Messages) + strlen(Unroutables);
+
+ Params = malloc(paramLen + 1000);
+
+ if (Params == 0)
+ {
+ free(Messages);
+ free(Unroutables);
+ return;
+ }
+
ptr = Params;
sprintf(Request, "/api/bbsdata/%s", BBSName);
@@ -1092,4 +1104,5 @@ int unroutableCount = 0; SendWebRequest("packetnodes.spots.radio", Request, Params, Return);
free(Messages);
free(Unroutables);
+ free(Params);
}
|
