1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-25 01:07:52 +00:00

Prevent crash

This commit is contained in:
M66B 2016-04-07 09:20:26 +02:00
parent 52e501c516
commit 51332c6910

View file

@ -436,6 +436,7 @@ jint get_uid(const int version, const int protocol,
// Scan proc file
jint u;
int i = 0;
*line = 0;
while (fgets(line, sizeof(line), fd) != NULL) {
if (i++) {
*hex = 0;