summaryrefslogtreecommitdiff
path: root/src/common/core.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-28 13:31:22 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-28 13:31:22 +0000
commit434c36b4267b2665780f1afbee2b7d7118bc3c01 (patch)
tree03f04557f7afb61132ed8be78c40065004968427 /src/common/core.c
parent971beef1fc01e7137ba2fabe7eb9417e5076f711 (diff)
downloadhercules-434c36b4267b2665780f1afbee2b7d7118bc3c01.tar.gz
hercules-434c36b4267b2665780f1afbee2b7d7118bc3c01.tar.bz2
hercules-434c36b4267b2665780f1afbee2b7d7118bc3c01.tar.xz
hercules-434c36b4267b2665780f1afbee2b7d7118bc3c01.zip
- Changed write to send as suggested by TheUltraMage in:
http://www.eathena.ws/board/index.php?showtopic=105417 Hopefully that will take care of the SIGPIPE problem in Debian and cygwin. - Server name in core.c skipping '\\' characters. - Memory allocation functions using file,line,func from the invoking functions. - Other minor changes in malloc git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9344 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/core.c')
-rw-r--r--src/common/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/core.c b/src/common/core.c
index 3264ac1cc..1f361bd95 100644
--- a/src/common/core.c
+++ b/src/common/core.c
@@ -228,7 +228,7 @@ int main (int argc, char **argv)
// initialise program arguments
{
char *p = SERVER_NAME = argv[0];
- while ((p = strchr(p, '/')) != NULL)
+ while ((p = strchr(p, '/')) != NULL || (p = strchr(p, '\\')) != NULL)
SERVER_NAME = ++p;
arg_c = argc;
arg_v = argv;