diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-02-21 21:44:15 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-02-21 21:44:15 +0100 |
commit | bb06f65290c2526d214302ba43bb6bc363cd4868 (patch) | |
tree | e7d7ac50f27837a2ffdc874d3e9cb3fe3bd93481 /NEWS | |
parent | 5e3ef5153fe6aa2190ffa185009fa45e3549469d (diff) | |
download | mig-bb06f65290c2526d214302ba43bb6bc363cd4868.tar.gz mig-bb06f65290c2526d214302ba43bb6bc363cd4868.tar.bz2 mig-bb06f65290c2526d214302ba43bb6bc363cd4868.zip |
Fix variable-sized c strings
Previously, the terminating zero of variable-sized c strings was only
included when copying the message if the length of the string was not
a multiple of four. mig_strncpy returns the length of the string
excluding the terminating zero. Fix this by properly accounting for
the byte for the terminating zero in the array length.
* server.c (WritePackArgValue): Account for the terminating zero in
the array length.
* user.c (WritePackArgValue): Likewise.
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions