freebsd-ports/security/samba-vscan/files/extra_patch-vscan-parameter.c
Edwin Groothuis 45e3e7a3a4 [maintainer update]: security/samba-vscan fix atoll problem on 4.X
- Fix atoll problem with FreeBSD 4.X.

PR:		ports/90645
Submitted by:	Jean Milanez Melo <jmelo@freebsdbrasil.com.br>
2005-12-20 12:35:18 +00:00

10 lines
No EOL
470 B
C

--- global/vscan-parameter.c.orig Mon Dec 12 01:36:54 2005
+++ global/vscan-parameter.c Mon Dec 12 01:36:54 2005
@@ -162,6 +162,7 @@
*/
/* FIXME: changed atoi to atoll, but atoll might not be available
on all platforms! */
+ #define atoll(a) strtoll((a), (char **)NULL, 10)
vscan_config->common.max_size = atoll(value);
DEBUG(3, ("max file size is: %lld\n", (long long)vscan_config->common.max_size));