Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
c25a5d7e
Commit
c25a5d7e
authored
15 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
fix bad, bad memory overwriting bug..ugh.
parent
49853f8d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapFeature/zmapFeatureUtils.c
+22
-22
22 additions, 22 deletions
src/zmapFeature/zmapFeatureUtils.c
with
22 additions
and
22 deletions
src/zmapFeature/zmapFeatureUtils.c
+
22
−
22
View file @
c25a5d7e
...
...
@@ -26,9 +26,9 @@
*
* Exported functions: See ZMap/zmapFeature.h
* HISTORY:
* Last edited:
May 1 1
9:
0
2 2009 (
rds
)
* Last edited:
Sep 2 0
9:
4
2 2009 (
edgrif
)
* Created: Tue Nov 2 2004 (rnc)
* CVS info: $Id: zmapFeatureUtils.c,v 1.6
6
2009-0
5
-0
8
1
4:19:54 rds
Exp $
* CVS info: $Id: zmapFeatureUtils.c,v 1.6
7
2009-0
9
-0
2
1
3:51:21 edgrif
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -530,32 +530,32 @@ gboolean zMapFeatureBlockDecodeID(GQuark id,
int
*
ref_start
,
int
*
ref_end
,
ZMapStrand
*
ref_strand
,
int
*
non_start
,
int
*
non_end
,
ZMapStrand
*
non_strand
)
{
gboolean
valid
=
FALSE
;
char
*
block_id
;
char
*
format_str
=
"%d.%d.%1
s
_%d.%d.%1
s"
;
char
*
ref_strand_str
,
*
non_strand_str
;
int
fields
;
enum
{
EXPECTED_FIELDS
=
6
};
block_id
=
(
char
*
)
g_quark_to_string
(
id
);
if
((
fields
=
sscanf
(
block_id
,
format_str
,
ref_start
,
ref_end
,
&
ref_strand_str
[
0
],
non_start
,
non_end
,
&
non_strand_str
[
0
]))
!=
EXPECTED_FIELDS
)
gboolean
valid
=
FALSE
;
char
*
block_id
;
char
*
format_str
=
"%d.%d.%1
c
_%d.%d.%1
c"
;
char
ref_strand_str
[
2
]
=
{
'\0'
}
,
non_strand_str
[
2
]
=
{
'\0'
}
;
int
fields
;
enum
{
EXPECTED_FIELDS
=
6
}
;
block_id
=
(
char
*
)
g_quark_to_string
(
id
)
;
if
((
fields
=
sscanf
(
block_id
,
format_str
,
ref_start
,
ref_end
,
&
ref_strand_str
[
0
],
non_start
,
non_end
,
&
non_strand_str
[
0
]))
!=
EXPECTED_FIELDS
)
{
*
ref_start
=
0
;
*
ref_end
=
0
;
*
non_start
=
0
;
*
non_end
=
0
;
*
ref_start
=
0
;
*
ref_end
=
0
;
*
non_start
=
0
;
*
non_end
=
0
;
}
else
{
zMapFeatureFormatStrand
(
ref_strand_str
,
ref_strand
);
zMapFeatureFormatStrand
(
non_strand_str
,
non_strand
);
valid
=
TRUE
;
zMapFeatureFormatStrand
(
&
ref_strand_str
[
0
]
,
ref_strand
)
;
zMapFeatureFormatStrand
(
&
non_strand_str
[
0
]
,
non_strand
)
;
valid
=
TRUE
;
}
return
valid
;
return
valid
;
}
GQuark
zMapFeatureSetCreateID
(
char
*
set_name
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment