This commit is contained in:
Dale Weiler 2013-02-10 13:57:22 +00:00
parent b5ead871ef
commit c8959a2452

View file

@ -124,7 +124,6 @@ char *ftepp_predef_line(lex_file *context) {
char *ftepp_predef_file(lex_file *context) { char *ftepp_predef_file(lex_file *context) {
size_t length = strlen(context->name) + 3; /* two quotes and a terminator */ size_t length = strlen(context->name) + 3; /* two quotes and a terminator */
char *value = (char*)mem_a(length); char *value = (char*)mem_a(length);
memset (value, 0, length);
sprintf(value, "\"%s\"", context->name); sprintf(value, "\"%s\"", context->name);
return value; return value;