1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 12:10:03 +00:00

Fix sonarcloud complaints about minus unsigned

This commit is contained in:
Nikolas Garofil 2018-08-08 16:26:09 +02:00 committed by Brenden Matthews
parent d1d99bc1da
commit 31a4954679

View File

@ -175,7 +175,7 @@ static void print_tailhead(const char *type, struct text_object *obj, char *p,
endofstring = strlen(p);
}
} else if (strcmp(type, "tail") == 0) {
fseek(fp, (long) -p_max_size, SEEK_END);
fseek(fp, - (long) p_max_size, SEEK_END);
i = fread(p, 1, p_max_size - 1, fp);
tailstring(p, i, ht->wantedlines);
} else {