Corrected some compilation warnings

This commit is contained in:
smallmodel 2024-06-11 21:24:01 +02:00
parent dfb2cb6bbf
commit 874b034698
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 2 additions and 2 deletions

View file

@ -306,7 +306,7 @@ static void send_final(qr_t qrec, struct sockaddr *sender, char *outbuf, char *v
return;
}
strcpy(encrypted_val, validation);
strcpy((char*)encrypted_val, validation);
gs_encrypt((uchar *)qrec->secret_key, (int)strlen(qrec->secret_key), encrypted_val, keylen);
gs_encode(encrypted_val, keylen, encoded_val);

View file

@ -1519,7 +1519,7 @@ void SV_ExecuteClientCommand( client_t *cl, const char *s, qboolean clientOK ) {
// Since 2.0, displays chat messages
// NOTE: this should be handled by fgame, not server
//
Com_Printf("%s (%ld): %s", cl->name, cl - svs.clients, s);
Com_Printf("%s (%zu): %s", cl->name, (size_t)(cl - svs.clients), s);
}
if (clientOK) {