Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Sumaid
tracker-miners
Commits
9e42191f
Commit
9e42191f
authored
May 18, 2010
by
Aleksander Morgado
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set absolute max bytes that can be read to 10 Mbytes
parent
08539b45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/tracker-extract/tracker-config.c
src/tracker-extract/tracker-config.c
+5
-4
No files found.
src/tracker-extract/tracker-config.c
View file @
9e42191f
...
...
@@ -8,7 +8,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
...
...
@@ -30,7 +30,8 @@
/* Default values */
#define DEFAULT_VERBOSITY 0
#define DEFAULT_MAX_BYTES 1048576
/* 1Mbyte */
#define DEFAULT_MAX_BYTES 1048576
/* 1Mbyte */
#define ABSOLUTE_MAX_BYTES 10485760
/* 10 Mbytes (GB#616845) */
typedef
struct
{
/* General */
...
...
@@ -101,9 +102,9 @@ tracker_config_class_init (TrackerConfigClass *klass)
PROP_MAX_BYTES
,
g_param_spec_int
(
"max-bytes"
,
"Max Bytes"
,
" Maximum number of UTF-8 bytes to extract per file [0->
G_MAXINT
]"
,
" Maximum number of UTF-8 bytes to extract per file [0->
10485760
]"
,
0
,
G_MAXINT
,
ABSOLUTE_MAX_BYTES
,
DEFAULT_MAX_BYTES
,
G_PARAM_READWRITE
|
G_PARAM_CONSTRUCT
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment