Changeset 2703 in MondoRescue for branches/2.2.10/mondo/src/common/newt-specific.c
- Timestamp:
- Jan 27, 2011, 7:31:20 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/newt-specific.c
r2508 r2703 453 453 if (!strncmp(err_log_lines[i], "root:", 5)) { 454 454 mr_asprintf(tmp, "%s", err_log_lines[i] + 6); 455 str cpy(err_log_lines[i], tmp);455 strncpy(err_log_lines[i], tmp, (size_t)MAX_NEWT_COMMENT_LEN); 456 456 mr_free(tmp); 457 457 } … … 486 486 487 487 va_start(args, fmt); 488 vs printf(output, fmt, args);488 vsnprintf(output, MAX_STR_LEN-1, fmt, args); 489 489 log_msg(0, output); 490 490 output[80] = '\0';
Note:
See TracChangeset
for help on using the changeset viewer.