diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-07 19:45:24 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-07 19:45:24 +0000 |
commit | ee657a1fb7fa9b9f9f4d89bdaec4ef8544ccd739 (patch) | |
tree | fae0d7f7fd4be7e6e173e1eb0e2ccb48df40d7c5 /src/char/int_storage.c | |
parent | e4b44bb0c6d412fe8d7e9f4877fe7f55356cb56d (diff) | |
download | hercules-ee657a1fb7fa9b9f9f4d89bdaec4ef8544ccd739.tar.gz hercules-ee657a1fb7fa9b9f9f4d89bdaec4ef8544ccd739.tar.bz2 hercules-ee657a1fb7fa9b9f9f4d89bdaec4ef8544ccd739.tar.xz hercules-ee657a1fb7fa9b9f9f4d89bdaec4ef8544ccd739.zip |
* 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
Diffstat (limited to 'src/char/int_storage.c')
-rw-r--r-- | src/char/int_storage.c | 16 |
1 files changed, 8 insertions, 8 deletions
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; j<MAX_SLOTS; j++) - str_p += snprintf(str_p,sizeof str_p,",%d",p->items[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;i<MAX_GUILD_STORAGE;i++) if( (p->storage_[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; j<MAX_SLOTS; j++) - str_p += snprintf(str_p,sizeof str_p,",%d",p->storage_[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++; } |