Changeset 1615 for trunk/oscam-config.c
- Timestamp:
- 02/19/10 14:06:17 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-config.c
r1602 r1615 1000 1000 ulong caid; 1001 1001 char buf[strlen(value) + 1]; 1002 strncpy(buf, value, sizeof(buf) );1002 strncpy(buf, value, sizeof(buf)-1); 1003 1003 b=(what==1) ? sizeof(ulong) : sizeof(ushort); 1004 1004 for (i=0, ptr=strtok(value, ","); ptr; ptr=strtok(NULL, ",")) … … 1091 1091 nr++; 1092 1092 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); 1094 1094 continue; 1095 1095 }
Note:
See TracChangeset
for help on using the changeset viewer.