mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed bug with sizeof argument
SVN revision: 2426
This commit is contained in:
parent
14cb317adf
commit
8109d37506
@ -9062,7 +9062,7 @@ void compare_attributes(LOGBOOK * lbs, int message_id, char attrib[MAX_N_ATTR][N
|
||||
}
|
||||
|
||||
if (*n == 0)
|
||||
memcpy(attrib, attr, sizeof(attr));
|
||||
memcpy(attrib, attr, sizeof(MAX_N_ATTR * NAME_LENGTH));
|
||||
else {
|
||||
for (i = 0; i < lbs->n_attr; i++)
|
||||
if (!strieq(attrib[i], attr + i * NAME_LENGTH))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user