From ee657a1fb7fa9b9f9f4d89bdaec4ef8544ccd739 Mon Sep 17 00:00:00 2001 From: ai4rei Date: Tue, 7 Dec 2010 19:45:24 +0000 Subject: * Reverted r14563, due to multiple issues which render the source malfunctioning or uncompilable. To be redone later (bugreport:4627). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14567 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char/int_storage.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/char/int_storage.c') diff --git a/src/char/int_storage.c b/src/char/int_storage.c index ff682da87..bae72fcf4 100644 --- a/src/char/int_storage.c +++ b/src/char/int_storage.c @@ -31,17 +31,17 @@ bool storage_tostr(char* str, int account_id, struct storage_data* p) { int i,j; char *str_p = str; - str_p += snprintf(str_p, sizeof str_p, "%d,%d\t", account_id, p->storage_amount); + str_p += sprintf(str_p, "%d,%d\t", account_id, p->storage_amount); for( i = 0; i < MAX_STORAGE; i++ ) if( p->items[i].nameid > 0 && p->items[i].amount > 0 ) { - str_p += snprintf(str_p, sizeof str_p, "%d,%d,%d,%d,%d,%d,%d", + str_p += sprintf(str_p, "%d,%d,%d,%d,%d,%d,%d", p->items[i].id,p->items[i].nameid,p->items[i].amount,p->items[i].equip, p->items[i].identify,p->items[i].refine,p->items[i].attribute); for(j=0; jitems[i].card[j]); - str_p += snprintf(str_p,sizeof str_p," "); + str_p += sprintf(str_p,",%d",p->items[i].card[j]); + str_p += sprintf(str_p," "); } *(str_p++)='\t'; @@ -98,16 +98,16 @@ int guild_storage_tostr(char *str,struct guild_storage *p) { int i,j,f=0; char *str_p = str; - str_p+=snprintf(str,sizeof str,"%d,%d\t",p->guild_id,p->storage_amount); + str_p+=sprintf(str,"%d,%d\t",p->guild_id,p->storage_amount); for(i=0;istorage_[i].nameid) && (p->storage_[i].amount) ){ - str_p += snprintf(str_p,sizeof str_p,"%d,%d,%d,%d,%d,%d,%d", + str_p += sprintf(str_p,"%d,%d,%d,%d,%d,%d,%d", p->storage_[i].id,p->storage_[i].nameid,p->storage_[i].amount,p->storage_[i].equip, p->storage_[i].identify,p->storage_[i].refine,p->storage_[i].attribute); for(j=0; jstorage_[i].card[j]); - str_p += snprintf(str_p,sizeof str_p," "); + str_p += sprintf(str_p,",%d",p->storage_[i].card[j]); + str_p += sprintf(str_p," "); f++; } -- cgit v1.2.3-70-g09d2