Changeset 37055
- Timestamp:
- Jul 17, 2014, 11:23:33 AM (12 years ago)
- Location:
- trunk/Ohana/src/libdvo/src
- Files:
-
- 2 edited
-
cmf-ps1-sv3.c (modified) (1 diff)
-
dvo_convert_PS1_DEV_3.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/src/cmf-ps1-sv3.c
r37035 r37055 10 10 11 11 off_t i; 12 unsigned char *byte, *output; 12 unsigned char *byte = NULL; 13 unsigned char *output = NULL; 13 14 14 15 if (size != ST_SIZE) { -
trunk/Ohana/src/libdvo/src/dvo_convert_PS1_DEV_3.c
r35162 r37055 4 4 5 5 // We only provide image and photcode conversion 6 7 # define RAW_IMAGE_NAME_LEN 128 6 8 7 9 Image *Image_PS1_DEV_3_ToInternal (Image_PS1_DEV_3 *in, off_t Nvalues, off_t Nalloc) { … … 18 20 memcpy (&out[i].coords, &in[i].coords, sizeof(Coords)); 19 21 20 strncpy (out[i].name, in[i].name, 120); // out[121], in[121] 21 out[i].name[120] = 0; // force termination 22 // RAW_IMAGE_NAME_LEN > DVO_IMAGE_NAME_LEN 23 strncpy (out[i].name, in[i].name, DVO_IMAGE_NAME_LEN - 1); 24 out[i].name[DVO_IMAGE_NAME_LEN - 1] = 0; // force termination 22 25 23 26 out[i].tzero = in[i].tzero; … … 77 80 memcpy (&out[i].coords, &in[i].coords, sizeof(Coords)); 78 81 79 strncpy (out[i].name, in[i].name, 127); // out[128], in[128] 80 out[i].name[127] = 0; // force termination 82 // RAW_IMAGE_NAME_LEN > DVO_IMAGE_NAME_LEN 83 strncpy (out[i].name, in[i].name, DVO_IMAGE_NAME_LEN - 1); 84 out[i].name[DVO_IMAGE_NAME_LEN - 1] = 0; // force termination 81 85 82 86 out[i].tzero = in[i].tzero;
Note:
See TracChangeset
for help on using the changeset viewer.
