185 lines
4.4 KiB
Diff
185 lines
4.4 KiB
Diff
--- a/Multicast.c
|
|
+++ b/Multicast.c
|
|
@@ -620,7 +620,7 @@
|
|
int r;
|
|
|
|
UINT rlen;
|
|
- UINT outlen;
|
|
+ size_t outlen;
|
|
|
|
memcpy(&rlen, &Decoded[5], 4);
|
|
|
|
@@ -1612,7 +1612,7 @@
|
|
if (Sess ==NULL)
|
|
return 0;
|
|
|
|
- Len = sprintf(Reply, StatusPage);
|
|
+ Len = sprintf(Reply, "%s", StatusPage);
|
|
|
|
while (Sess)
|
|
{
|
|
@@ -1670,7 +1670,7 @@
|
|
Sess = Sess->Next;
|
|
}
|
|
|
|
- Len += sprintf(&Reply[Len], StatusTail);
|
|
+ Len += sprintf(&Reply[Len], "%s", StatusTail);
|
|
|
|
return Len;
|
|
}
|
|
--- a/bpqmail.h
|
|
+++ b/bpqmail.h
|
|
@@ -611,7 +611,7 @@
|
|
char status;
|
|
int number;
|
|
int length;
|
|
- int xdatereceived;
|
|
+ time_t xdatereceived;
|
|
char bbsfrom[7]; // ? BBS we got it from ?
|
|
char via[41];
|
|
char from[7];
|
|
@@ -643,9 +643,9 @@
|
|
// For 64 bit time_t compatibility define as long long
|
|
// (so struct is same with 32 or 64 bit time_t)
|
|
|
|
- long long datereceived;
|
|
- long long datecreated;
|
|
- long long datechanged;
|
|
+ time_t datereceived;
|
|
+ time_t datecreated;
|
|
+ time_t datechanged;
|
|
|
|
char Spare[61 - 24]; // For future use
|
|
} ;
|
|
@@ -695,8 +695,8 @@
|
|
unsigned char Type;
|
|
unsigned char changed;
|
|
unsigned short seen;
|
|
- long long last_modif;
|
|
- long long last_seen;
|
|
+ time_t last_modif;
|
|
+ time_t last_seen;
|
|
char first_homebbs[41];
|
|
char secnd_homebbs[41];
|
|
char first_zip[9];
|
|
--- a/AGWAPI.c
|
|
+++ b/AGWAPI.c
|
|
@@ -128,7 +128,7 @@
|
|
int AGWGetSessionKey(char * key, struct AGWSocketConnectionInfo * sockptr);
|
|
int ProcessAGWCommand(struct AGWSocketConnectionInfo * sockptr);
|
|
int SendDataToAppl(int Stream, byte * Buffer, int Length);
|
|
-int InternalAGWDecodeFrame(char * msg, char * buffer, int Stamp, int * FrameType, int useLocalTime, int doNodes);
|
|
+int InternalAGWDecodeFrame(char * msg, char * buffer, time_t Stamp, int * FrameType, int useLocalTime, int doNodes);
|
|
int AGWDataSocket_Disconnect( struct AGWSocketConnectionInfo * sockptr);
|
|
int SendRawPacket(struct AGWSocketConnectionInfo * sockptr, char *txmsg, int Length);
|
|
int ShowApps();
|
|
--- a/APRSCode.c
|
|
+++ b/APRSCode.c
|
|
@@ -7666,7 +7666,7 @@
|
|
|
|
}
|
|
|
|
- OutputLen += sprintf(&OutBuffer[OutputLen], WebTrailer);
|
|
+ OutputLen += sprintf(&OutBuffer[OutputLen], "%s", WebTrailer);
|
|
|
|
HeaderLen = sprintf(Header, "HTTP/1.0 200 OK\r\nContent-Length: %d\r\nContent-Type: text/html\r\n\r\n", OutputLen);
|
|
sendandcheck(sock, Header, HeaderLen);
|
|
@@ -7711,7 +7711,7 @@
|
|
|
|
}
|
|
|
|
- OutputLen += sprintf(&OutBuffer[OutputLen], WebTrailer);
|
|
+ OutputLen += sprintf(&OutBuffer[OutputLen], "%s", WebTrailer);
|
|
|
|
HeaderLen = sprintf(Header, "HTTP/1.0 200 OK\r\nContent-Length: %d\r\nContent-Type: text/html\r\n\r\n", OutputLen);
|
|
sendandcheck(sock, Header, HeaderLen);
|
|
--- a/LinBPQ.c
|
|
+++ b/LinBPQ.c
|
|
@@ -667,7 +667,7 @@
|
|
|
|
// Replace CR with CRLF
|
|
|
|
- printf(ptr);
|
|
+ printf("%c", ptr);
|
|
|
|
if (ptr2)
|
|
printf("\r\n");
|
|
@@ -816,7 +816,7 @@
|
|
{
|
|
case 'h':
|
|
|
|
- printf(HelpScreen);
|
|
+ printf("%c", HelpScreen);
|
|
exit (0);
|
|
|
|
case 'l':
|
|
--- a/RigControl.c
|
|
+++ b/RigControl.c
|
|
@@ -1291,7 +1291,7 @@
|
|
|
|
// use text command
|
|
|
|
- Len = sprintf(CmdPtr, ptr1);
|
|
+ Len = sprintf(CmdPtr,"%c", ptr1);
|
|
break;
|
|
|
|
case YAESU:
|
|
--- a/FreeDATA.c
|
|
+++ b/FreeDATA.c
|
|
@@ -867,7 +867,7 @@
|
|
char Message[256];
|
|
int Len, ret;
|
|
|
|
- Len = sprintf(Message, TXF);
|
|
+ Len = sprintf(Message,"%c",TXF);
|
|
ret = send(TNC->TCPDataSock, (char *)&Message, Len, 0);
|
|
|
|
if (buffptr)
|
|
@@ -2476,7 +2476,7 @@
|
|
char Message[256];
|
|
int Len, ret;
|
|
|
|
- Len = sprintf(Message, CQ);
|
|
+ Len = sprintf(Message, "%c", CQ);
|
|
ret = send(TNC->TCPDataSock, (char *)&Message, Len, 0);
|
|
}
|
|
|
|
@@ -2491,7 +2491,7 @@
|
|
if (Interval > 0)
|
|
Len = sprintf(Message, Template1, Interval);
|
|
else
|
|
- Len = sprintf(Message, Template2);
|
|
+ Len = sprintf(Message, "%c", Template2);
|
|
|
|
ret = send(TNC->TCPDataSock, (char *)&Message, Len, 0);
|
|
}
|
|
@@ -3682,7 +3682,7 @@
|
|
|
|
// return FreeDataSendCommand(TNC, "D");
|
|
|
|
- Len = sprintf(Msg, Disconnect);
|
|
+ Len = sprintf(Msg,"%c", Disconnect);
|
|
|
|
return send(TNC->TCPDataSock, Msg, Len, 0);
|
|
}
|
|
@@ -3694,7 +3694,7 @@
|
|
char Msg[128];
|
|
int Len;
|
|
|
|
- Len = sprintf(Msg, GetData);
|
|
+ Len = sprintf(Msg, "%c", GetData);
|
|
|
|
return send(TNC->TCPDataSock, Msg, Len, 0);
|
|
}
|
|
--- a/rigcontrol.h
|
|
+++ b/rigcontrol.h
|
|
@@ -2,7 +2,7 @@
|
|
#define RIGCONTROL
|
|
|
|
#ifndef LINBPQ
|
|
-#include "Rigresource.h"
|
|
+#include "rigresource.h"
|
|
#endif
|
|
|
|
#define IDI_ICON2 2
|