Changeset 107 in libcf for trunk/src/cf_debug.c
- Timestamp:
- 05/30/13 16:57:55 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cf_debug.c
r87 r107 225 225 226 226 /* push to callstack */ 227 s printf (push->file, "%s", file);228 s printf (push->func, "%s", func);227 snprintf (push->file, NAME_LENGTH, "%s", file); 228 snprintf (push->func, NAME_LENGTH, "%s", func); 229 229 push->line = line; 230 230 push->caller = context->callstack.caller; … … 260 260 if (callstack != NULL) 261 261 { 262 s printf (callstack->file, "%s", pop->file);263 s printf (callstack->function, "%s", pop->func);262 snprintf (callstack->file , NAME_LENGTH, "%s", pop->file); 263 snprintf (callstack->function, NAME_LENGTH, "%s", pop->func); 264 264 callstack->line = pop->line; 265 265 }
Note:
See TracChangeset
for help on using the changeset viewer.