Follow up fea3489, just 'char' to 'uint8'
Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
This commit is contained in:
parent
98c83eeb7f
commit
a0cefe9479
@ -497,7 +497,7 @@ int logchrif_parse_updreg2(int fd, int id, char* ip){
|
|||||||
else{
|
else{
|
||||||
int len;
|
int len;
|
||||||
int p;
|
int p;
|
||||||
char j;
|
uint8 j;
|
||||||
ShowNotice("char-server '%s': receiving (from the char-server) of account_reg2 (account: %d, ip: %s).\n", ch_server[id].name, account_id, ip);
|
ShowNotice("char-server '%s': receiving (from the char-server) of account_reg2 (account: %d, ip: %s).\n", ch_server[id].name, account_id, ip);
|
||||||
for( j = 0, p = 13; j < ACCOUNT_REG2_NUM && p < RFIFOW(fd,2); ++j ){
|
for( j = 0, p = 13; j < ACCOUNT_REG2_NUM && p < RFIFOW(fd,2); ++j ){
|
||||||
sscanf((char*)RFIFOP(fd,p), "%31c%n", acc.account_reg2[j].str, &len);
|
sscanf((char*)RFIFOP(fd,p), "%31c%n", acc.account_reg2[j].str, &len);
|
||||||
@ -633,7 +633,7 @@ int logchrif_parse_reqacc2reg(int fd){
|
|||||||
|
|
||||||
off = 13;
|
off = 13;
|
||||||
if( accounts->load_num(accounts, &acc, account_id) ){
|
if( accounts->load_num(accounts, &acc, account_id) ){
|
||||||
char j;
|
uint8 j;
|
||||||
for( j = 0; j < acc.account_reg2_num; j++ ){
|
for( j = 0; j < acc.account_reg2_num; j++ ){
|
||||||
if( acc.account_reg2[j].str[0] != '\0' ){
|
if( acc.account_reg2[j].str[0] != '\0' ){
|
||||||
off += sprintf((char*)WFIFOP(fd,off), "%s", acc.account_reg2[j].str)+1; //We add 1 to consider the '\0' in place.
|
off += sprintf((char*)WFIFOP(fd,off), "%s", acc.account_reg2[j].str)+1; //We add 1 to consider the '\0' in place.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user