Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vcgencmd/vcgencmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static unsigned gencmd(int file_desc, const char *command, char *result, int res
p[i++] = 0x00000000; // process request

p[i++] = GET_GENCMD_RESULT; // (the tag id)
p[i++] = MAX_STRING;// buffer_len
p[i++] = MAX_STRING + 4; // buffer_len: response word + command/result
p[i++] = 0; // request_len (set to response length)
p[i++] = 0; // error repsonse

Expand All @@ -110,7 +110,7 @@ static unsigned gencmd(int file_desc, const char *command, char *result, int res

mbox_property(file_desc, p);
result[0] = 0;
strncat(result, (const char *)(p+6), result_len);
strncat(result, (const char *)(p+6), result_len - 1);

return p[5];
}
Expand Down
Loading