Commit 4f5976b4 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Temporary fix for Release mod

parent bd0dd9f7
......@@ -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;
}
*/
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment