• R/O
  • HTTP
  • SSH
  • HTTPS

multi_forward: Commit


Commit MetaInfo

Révision3b459b85c5b4a435d2d772feca193e149441c467 (tree)
l'heure2019-09-22 21:16:34
AuteurSatoshi Yasuda <yasuda@jk1z...>
CommiterSatoshi Yasuda

Message de Log

modified: multi_forward_utils.c

Change Summary

Modification

--- a/multi_forward_utils.c
+++ b/multi_forward_utils.c
@@ -739,56 +739,56 @@ void ctbl_send(void)
739739
740740 void send_not_regist(struct MultiConnectTable *pnt)
741741 {
742- unsigned char buff[44];
742+ unsigned char buff[64];
743743
744744 memcpy (buff, "ERROR", 5);
745- memset (&buff[5], 0x00, 39);
746- sprintf (&buff[5], "%8.8s Not registed(connect)", pnt->auth_callsign);
747- sendto (multi_sd, buff, 44, 0,
745+ memset (&buff[5], 0x00, 59);
746+ sprintf (&buff[5], "接続コールサイン '%8.8s' は未登録", pnt->auth_callsign);
747+ sendto (multi_sd, buff, 64, 0,
748748 (struct sockaddr *)&pnt->multi_addr,sizeof(struct sockaddr));
749749 }
750750
751751 void send_not_xmit (struct MultiConnectTable *pnt)
752752 {
753- unsigned char buff[44];
753+ unsigned char buff[64];
754754
755755 memcpy (buff, "ERROR", 5);
756- memset (&buff[5], 0x00, 39);
757- sprintf (&buff[5], "'%8.8s' Not registed(Xmit)", pnt->xmit_callsign);
758- sendto (multi_sd, buff, 44, 0,
756+ memset (&buff[5], 0x00, 59);
757+ sprintf (&buff[5], "MyCall '%8.8s' は未登録", pnt->xmit_callsign);
758+ sendto (multi_sd, buff, 64, 0,
759759 (struct sockaddr *)&pnt->multi_addr,sizeof(struct sockaddr));
760760 }
761761
762762 void send_no_error_auth (struct MultiConnectTable *pnt)
763763 {
764- unsigned char buff[44];
764+ unsigned char buff[64];
765765
766766 memcpy (buff, "ERROR", 5);
767- memset (&buff[5], 0x00, 39);
768- sprintf (&buff[5], "'%8.8s' registed.", pnt->auth_callsign);
769- sendto (multi_sd, buff, 44, 0,
767+ memset (&buff[5], 0x00, 59);
768+ sprintf (&buff[5], "接続コールサイン '%8.8s' は登録済", pnt->auth_callsign);
769+ sendto (multi_sd, buff, 64, 0,
770770 (struct sockaddr *)&pnt->multi_addr, sizeof(struct sockaddr));
771771 }
772772
773773 void send_invalid_call (char call[], struct sockaddr_in multi_addr)
774774 {
775- unsigned char buff[44];
775+ unsigned char buff[64];
776776
777777 memcpy (buff, "ERROR", 5);
778- memset (&buff[5], 0x00, 39);
779- sprintf (&buff[5], "Invalid callsign '%8.8s'", call);
780- sendto (multi_sd, buff, 44, 0,
778+ memset (&buff[5], 0x00, 59);
779+ sprintf (&buff[5], "コールサイン '%8.8s' が間違っている", call);
780+ sendto (multi_sd, buff, 64, 0,
781781 (struct sockaddr *)&multi_addr, sizeof(struct sockaddr_in));
782782 }
783783
784784 void send_no_error_xmit (struct MultiConnectTable *pnt)
785785 {
786- unsigned char buff[44];
786+ unsigned char buff[64];
787787
788788 memcpy (buff, "ERROR", 5);
789- memset (&buff[5], 0x00, 39);
790- sprintf (&buff[5], "'%8.8s' registed.", pnt->xmit_callsign);
791- sendto (multi_sd, buff, 44, 0,
789+ memset (&buff[5], 0x00, 59);
790+ sprintf (&buff[5], "MyCall '%8.8s' は登録済", pnt->xmit_callsign);
791+ sendto (multi_sd, buff, 64, 0,
792792 (struct sockaddr *)&pnt->multi_addr, sizeof(struct sockaddr));
793793 }
794794
Afficher sur ancien navigateur de dépôt.