Skip to content
Snippets Groups Projects
Commit bc386fb5 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Resolve more warnings from GCC 12.2

parent 536fe688
No related branches found
No related tags found
No related merge requests found
......@@ -685,11 +685,11 @@ while(1) {
strcat(str," ");
if(h>21) {
strcat(str,Bust);
sprintf(str2,YourHand,h,str);
snprintf(str2, sizeof(str2), YourHand,h,str);
if(!symbols)
strip_symbols(str2);
bputs(str2);
sprintf(str2,UserHand,user_name,h,str);
snprintf(str2, sizeof(str2), UserHand,user_name,h,str);
putallnodemsg(str2);
break; }
if(h==21) {
......@@ -703,20 +703,20 @@ while(1) {
&& player[i][2].value==7)
strcat(str,Three7s);
strcat(str,TwentyOne); }
sprintf(str2,YourHand,h,str);
snprintf(str2, sizeof(str2), YourHand,h,str);
if(!symbols)
strip_symbols(str2);
bputs(str2);
sprintf(str2,UserHand,user_name,h,str);
snprintf(str2, sizeof(str2), UserHand,user_name,h,str);
putallnodemsg(str2);
// fdelay(500);
break; }
strcat(str,"\r\n");
sprintf(str2,YourHand,h,str);
snprintf(str2, sizeof(str2), YourHand,h,str);
if(!symbols)
strip_symbols(str2);
bputs(str2);
sprintf(str2,UserHand,user_name,h,str);
snprintf(str2, sizeof(str2), UserHand,user_name,h,str);
putallnodemsg(str2);
if(doub)
break;
......@@ -939,11 +939,11 @@ while(1) {
write(file,tmp,strlen(tmp));
close(file); } /* close winning log */
strcat(str,"\1n\r\n");
sprintf(str2,YourHand,h,str);
snprintf(str2, sizeof(str2), YourHand,h,str);
if(!symbols)
strip_symbols(str2);
bputs(str2);
sprintf(str2,UserHand,user_name,h,str);
snprintf(str2, sizeof(str2), UserHand,user_name,h,str);
putallnodemsg(str2); }
nextplayer();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment