commit | 04db87a89fca233008be1f4263cfa37af3f245a6 | [log] [tgz] |
---|---|---|
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | Fri Jan 13 03:36:57 2017 +0100 |
committer | Harald Welte <laforge@gnumonks.org> | Sun Jan 15 18:10:47 2017 +0000 |
tree | bb0df06eb77d602c8d2ddb5440ff5e82a6c7fe22 | |
parent | 3d07aef8006e3953edfee6f4e74b810ee3dc16f4 [diff] |
gprs subscr: fix: intended strcmp(), but is strcpy() The code checked 'if (strcpy(..) != 0)' which is always true and thus always copied twice -- luckily we want to copy anyway and so this is not an actual functional failure. We could correct to strcmp, but instead of iterating to compare, we might as well copy right away. Change-Id: I0ea035bd478f7022ed65e9e84d8aaf5e423309b7