mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r6031] Purpose:
Fixes bug #836. Also fixes the 'usage' message. Description: Solution: Platforms tested: Misc. update:
This commit is contained in:
parent
d77d7e04c5
commit
da647e3537
@ -39,7 +39,7 @@ main(int argv , char *argc[])
|
||||
GifMemoryStruct.GifCommentExtension = NULL;
|
||||
|
||||
if (argv < 3) {
|
||||
printf("\n\nWrong Usage. Use:\ngif2hdf <GIFFILE> <HDFFILE>\n\n");
|
||||
printf("\n\nWrong Usage. Use:\ngif2h5 <GIFFILE> <HDFFILE>\n\n");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ static int write_text_attribute(hid_t dataset_id , const char *attr_name,
|
||||
return -1;
|
||||
|
||||
/* figure out size of the data */
|
||||
attr_dims_size = strlen(attr_value) + 1;
|
||||
attr_dims_size = 1;
|
||||
|
||||
/* set the type to string */
|
||||
attr_type_id = H5Tcopy(H5T_C_S1);
|
||||
|
@ -39,7 +39,7 @@ main(int argv , char *argc[])
|
||||
GifMemoryStruct.GifCommentExtension = NULL;
|
||||
|
||||
if (argv < 3) {
|
||||
printf("\n\nWrong Usage. Use:\ngif2hdf <GIFFILE> <HDFFILE>\n\n");
|
||||
printf("\n\nWrong Usage. Use:\ngif2h5 <GIFFILE> <HDFFILE>\n\n");
|
||||
return(-1);
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ static int write_text_attribute(hid_t dataset_id , const char *attr_name,
|
||||
return -1;
|
||||
|
||||
/* figure out size of the data */
|
||||
attr_dims_size = strlen(attr_value) + 1;
|
||||
attr_dims_size = 1;
|
||||
|
||||
/* set the type to string */
|
||||
attr_type_id = H5Tcopy(H5T_C_S1);
|
||||
|
Loading…
Reference in New Issue
Block a user