fix:build error

This commit is contained in:
Alex Duan 2024-03-13 20:40:01 +08:00
parent cca0bf6af0
commit ef553bf210
1 changed files with 3 additions and 3 deletions

View File

@ -1198,10 +1198,10 @@ bool shellGetGrantInfo(char* buf) {
community = true; community = true;
} else if (strcmp(expiretime, "unlimited") == 0) { } else if (strcmp(expiretime, "unlimited") == 0) {
community = false; community = false;
fprintf(buf, "Server is Enterprise %s Edition, %s and will never expire.\r\n", serverVersion, sinfo); sprintf(buf, "Server is Enterprise %s Edition, %s and will never expire.\r\n", serverVersion, sinfo);
} else { } else {
community = false; community = false;
fprintf(buf, "Server is Enterprise %s Edition, %s and will expire at %s.\r\n", serverVersion, sinfo, sprintf(buf, "Server is Enterprise %s Edition, %s and will expire at %s.\r\n", serverVersion, sinfo,
expiretime); expiretime);
} }
@ -1379,7 +1379,7 @@ bool community = shellGetGrantInfo(buf);
#endif #endif
// printf version // printf version
if(!community) { if(!community) {
printf(buf); printf("%s", buf);
} }
#ifdef WEBSOCKET #ifdef WEBSOCKET