Changeset 1623


Ignore:
Timestamp:
02/19/10 23:17:41 (11 years ago)
Author:
landlord
Message:

Fixed bug applied with changeset 1615: last field in an serivce ID definition will be ignored

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-config.c

    r1617 r1623  
    998998  ulong caid;
    999999  char buf[strlen(value) + 1];
    1000   strncpy(buf, value, sizeof(buf)-1);
     1000  strncpy(buf, value, sizeof(buf));
    10011001  b=(what==1) ? sizeof(ulong) : sizeof(ushort);
    10021002  for (i=0, ptr=strtok(value, ","); ptr; ptr=strtok(NULL, ","))
     
    10891089      nr++;
    10901090      memset(sidtab, 0, sizeof(struct s_sidtab));
    1091       strncpy(sidtab->label, strtolower(token+1), sizeof(sidtab->label)-1);
     1091      strncpy(sidtab->label, strtolower(token+1), sizeof(sidtab->label));
    10921092      continue;
    10931093    }
Note: See TracChangeset for help on using the changeset viewer.