Skip to content

Commit 19da0e0

Browse files
authored
Codacy review 2 (#3)
1 parent f975cf2 commit 19da0e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/proclinux.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ int getprocs64 (void *procsinfo, int sizproc __attribute__((unused)), void *fdsi
107107
strcpy(filepath, FSDIRSEP "status");
108108
hf = open(path, O_RDONLY, 0666);
109109
if (hf > -1) {
110-
s = read(hf, data[nb].pi_comm, 6); /* Flawfinder: ignore */
110+
s = lseek(hf, 6, SEEK_SET);
111111
if (s == 6) {
112112
s = read(hf, data[nb].pi_comm, MAX_PATH); /* Flawfinder: ignore */
113113
for (;lenname < s && data[nb].pi_comm[lenname] != '\n';

0 commit comments

Comments
 (0)