Changeset 114 for trunk


Ignore:
Timestamp:
Nov 6, 2005, 3:16:27 PM (13 years ago)
Author:
andree
Message:

Change filling of g_tmpfs_mountpt over from sprintf to asprintf. Fixes
segmentation fault in mondorestore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/mondorestore/mondo-restore.c

    r94 r114  
    32473247    malloc_libmondo_global_strings();
    32483248
    3249     asprintf(&g_mondo_home, call_program_and_get_last_line_of_output("which mondorestore"));
    3250     sprintf(g_tmpfs_mountpt, "/tmp/tmpfs");
     3249    asprintf(&g_mondo_home,
     3250             call_program_and_get_last_line_of_output
     3251             ("which mondorestore"));
     3252    asprintf(&g_tmpfs_mountpt, "/tmp/tmpfs");
    32513253    make_hole_for_dir(g_tmpfs_mountpt);
    32523254    g_current_media_number = 1; // precaution
Note: See TracChangeset for help on using the changeset viewer.