Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
4f5976b4
Commit
4f5976b4
authored
Apr 15, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporary fix for Release mod
parent
bd0dd9f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/utils/bstr/bsafe.c
src/utils/bstr/bsafe.c
+3
-1
src/utils/bstr/bsafe.h
src/utils/bstr/bsafe.h
+1
-1
No files found.
src/utils/bstr/bsafe.c
View file @
4f5976b4
...
...
@@ -73,10 +73,12 @@ char * (strtok) (char *s1, const char *s2) {
if
(
bsafeShouldExit
)
exit
(
-
1
);
return
NULL
;
}
/*
//TODO: temporary solution for Release mode
char * (strdup) (const char *s) {
(void) s;
fprintf (stderr, "bsafe error: strdup() is not safe, use bstrcpy.\n");
if (bsafeShouldExit) exit (-1);
return NULL;
}
*/
src/utils/bstr/bsafe.h
View file @
4f5976b4
...
...
@@ -29,7 +29,7 @@ extern char * (gets) (char * buf);
extern
char
*
(
strncpy
)
(
char
*
dst
,
const
char
*
src
,
size_t
n
);
extern
char
*
(
strncat
)
(
char
*
dst
,
const
char
*
src
,
size_t
n
);
extern
char
*
(
strtok
)
(
char
*
s1
,
const
char
*
s2
);
extern
char
*
(
strdup
)
(
const
char
*
s
);
//
extern char * (strdup) (const char *s);
#undef strcpy
#undef strcat
...
...
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