Changeset 1266


Ignore:
Timestamp:
Mar 24, 2007, 10:29:09 AM (12 years ago)
Author:
bruno
Message:

Fix a bug in string affectation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c

    r1265 r1266  
    23362336
    23372337    g_backup_media_type = bkpinfo->backup_media_type;
    2338     bkpinfo->backup_media_string = bkptype_to_string(bkpinfo->backup_media_type);
     2338    strncpy(bkpinfo->backup_media_string,bkptype_to_string(bkpinfo->backup_media_type, (size_t)63);
    23392339    g_backup_media_string = bkpinfo->backup_media_string;
    23402340    return (retval);
Note: See TracChangeset for help on using the changeset viewer.