summaryrefslogtreecommitdiff
path: root/src/ladmin/ladmin.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-07 19:45:24 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-07 19:45:24 +0000
commitee657a1fb7fa9b9f9f4d89bdaec4ef8544ccd739 (patch)
treefae0d7f7fd4be7e6e173e1eb0e2ccb48df40d7c5 /src/ladmin/ladmin.c
parente4b44bb0c6d412fe8d7e9f4877fe7f55356cb56d (diff)
downloadhercules-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/ladmin/ladmin.c')
-rw-r--r--src/ladmin/ladmin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ladmin/ladmin.c b/src/ladmin/ladmin.c
index 7f75e3017..3f02a240a 100644
--- a/src/ladmin/ladmin.c
+++ b/src/ladmin/ladmin.c
@@ -250,7 +250,7 @@ int ladmin_log(char *fmt, ...)
else {
t = time(NULL);
strftime(tmpstr, 24, date_format, localtime(&t));
- snprintf(tmpstr + strlen(tmpstr), sizeof (tmpstr + strlen(tmpstr)), ": %s", fmt);
+ sprintf(tmpstr + strlen(tmpstr), ": %s", fmt);
vfprintf(logfp, tmpstr, ap);
}
fclose(logfp);
@@ -2523,7 +2523,7 @@ int parse_fromlogin(int fd)
ladmin_log("Account [%s] state changing failed. Account doesn't exist.\n", RFIFOP(fd,6));
} else {
char tmpstr[256];
- snprintf(tmpstr, sizeof tmpstr, "Account [%s] state successfully changed in [", RFIFOP(fd,6));
+ sprintf(tmpstr, "Account [%s] state successfully changed in [", RFIFOP(fd,6));
switch(RFIFOL(fd,30)) {
case 0:
strcat(tmpstr, "0: Account OK");