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;
} else if (strcmp(expiretime, "unlimited") == 0) {
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 {
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);
}
@ -1379,7 +1379,7 @@ bool community = shellGetGrantInfo(buf);
#endif
// printf version
if(!community) {
printf(buf);
printf("%s", buf);
}
#ifdef WEBSOCKET