opnsense-ports/games/crossfire-server/files/patch-common_exp.c
Franco Fichtner ae1e3c6f0e */*: sync with upstream
Taken from: FreeBSD
2016-03-08 19:03:51 +01:00

11 lines
411 B
C

--- common/exp.c.orig 2014-04-05 22:30:50 UTC
+++ common/exp.c
@@ -209,7 +209,7 @@ void init_experience(void) {
exit(1);
}
- tmpexp = atoll(cp);
+ tmpexp = strtoll(cp, (char **)NULL, 10);
/* Do some sanity checking - if value is bogus, just exit because
* the table otherwise is probably in an inconsistent state
*/