Changeset 1615


Ignore:
Timestamp:
02/19/10 14:06:17 (11 years ago)
Author:
merek
Message:

Merge from UMP r1724

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-config.c

    r1602 r1615  
    10001000  ulong caid;
    10011001  char buf[strlen(value) + 1];
    1002   strncpy(buf, value, sizeof(buf));
     1002  strncpy(buf, value, sizeof(buf)-1);
    10031003  b=(what==1) ? sizeof(ulong) : sizeof(ushort);
    10041004  for (i=0, ptr=strtok(value, ","); ptr; ptr=strtok(NULL, ","))
     
    10911091      nr++;
    10921092      memset(sidtab, 0, sizeof(struct s_sidtab));
    1093       strncpy(sidtab->label, strtolower(token+1), sizeof(sidtab->label));
     1093      strncpy(sidtab->label, strtolower(token+1), sizeof(sidtab->label)-1);
    10941094      continue;
    10951095    }
Note: See TracChangeset for help on using the changeset viewer.