samba-vscan/global vscan-parameter.c,1.1.2.4,1.1.2.5
Rainer Link <[email protected]> Tue, 18 Jan 2005 21:04:09 +0000
| Newsgroups | gmane.comp.security.virus.openantivirus.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openantivirus/samba-vscan/global
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8438
Modified Files:
Tag: VSCAN_0_3
vscan-parameter.c
Log Message:
changed atoi to atoll
Index: vscan-parameter.c
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/global/Attic/vscan-parameter.c,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -d -r1.1.2.4 -r1.1.2.5
--- vscan-parameter.c 28 Sep 2004 12:45:22 -0000 1.1.2.4
+++ vscan-parameter.c 18 Jan 2005 21:04:05 -0000 1.1.2.5
@@ -156,8 +156,10 @@
/* FIXME: sanity check missing! what, if value is out of range?
atoi returns int - what about LFS? atoi should be avoided!
*/
- vscan_config->common.max_size = atoi(value);
- DEBUG(3, ("max file size is: %d\n", vscan_config->common.max_size));
+ /* FIXME: change atoi to atoll, but atoll might not be available
+ on all platforms! */
+ vscan_config->common.max_size = atoll(value);
+ DEBUG(3, ("max file size is: %lld\n", (long long)vscan_config->common.max_size));
} else if ( StrCaseCmp("verbose file logging", param) == 0 ) {
set_boolean(&vscan_config->common.verbose_file_logging, value);
DEBUG(3, ("verbose file logging is: %d\n", vscan_config->common.verbose_file_logging));
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt