Change-Id: I2be0a615a5a5052f56c1c4958f9575033c952b38
Signed-off-by: Wonnam Jang <wn.jang@samsung.com>
fp = fopen(label_path, "r");
if (fp != NULL) {
- if (strlen(smack_label) != fread(smack_label, 1, sizeof(smack_label), fp))
+ if (0 >= fread(smack_label, 1, sizeof(smack_label), fp))
SLOG(LOG_ERROR, TAG_VCC, "[ERROR] fail to fread");
fclose(fp);
fp = fopen(label_path, "r");
if (fp != NULL) {
- if (sizeof(smack_label) != fread(smack_label, 1, sizeof(smack_label), fp))
+ if (0 >= fread(smack_label, 1, sizeof(smack_label), fp))
SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] fail to fread");
fclose(fp);