From 434c36b4267b2665780f1afbee2b7d7118bc3c01 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Tue, 28 Nov 2006 13:31:22 +0000 Subject: - 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 --- src/common/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/core.c') 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; -- cgit v1.2.3-70-g09d2