]> Devoid-pointer.net GitWeb - libHPCS.git/commitdiff
Read method name
authorMichal Malý <madcatxster@devoid-pointer.net>
Sun, 29 Jun 2014 23:04:25 +0000 (01:04 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Sun, 29 Jun 2014 23:04:25 +0000 (01:04 +0200)
libhpcs.c

index 304e784d84f331000b7a6a38516ed85497d1a1ef..416f8101f23c7a776d302f5e315257fb00605cab 100644 (file)
--- a/libhpcs.c
+++ b/libhpcs.c
@@ -64,6 +64,11 @@ enum HPCS_RetCode hpcs_read_file(const char* filename, struct HPCS_MeasuredData*
                ret = HPCS_E_PARSE_ERROR;
                goto out;
        }
+       pret = read_string_at_offset(datafile, DATA_OFFSET_METHOD_NAME, &mdata->method_name);
+       if (pret != PARSE_OK) {
+               ret = HPCS_E_PARSE_ERROR;
+               goto out;
+       }
        pret = read_date(datafile, &mdata->date);
        if (pret != PARSE_OK) {
                ret = HPCS_E_PARSE_ERROR;