Ignore:
Timestamp:
Dec 18, 2016, 12:25:21 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Fix get_non_rewind_dev as strlen doesn't coundt the final \0 so we need an additional char allocated
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-stream.c

    r3613 r3619  
    634634    char *r = NULL;
    635635
    636     ntapedev = (char *)malloc(strlen(tapedev)+sizeof(char));
     636    ntapedev = (char *)malloc(strlen(tapedev)+2*sizeof(char));
    637637    p = strrchr(tapedev,'/');
    638638    if (p == NULL) {
Note: See TracChangeset for help on using the changeset viewer.