summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-03 12:29:06 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-03 12:33:48 -0800
commit6f8e9bcff3046dc7abedea731427f7c307ba3258 (patch)
tree7c4263cd0836eb2a587f6023ba094425e4a89087 /save-xml.c
parent8dbe3528b4ae6ab01d913d41d696c20319004508 (diff)
downloadsubsurface-6f8e9bcff3046dc7abedea731427f7c307ba3258.tar.gz
Rewrite the nickname replacement function
This function had a couple of bugs. Two different off by one errors and on top of that it was matching only the deviceid instead of model and deviceid. So I simply rewrote it to match against the full pattern and take a much more straight forward approach to replacing the entry for the divecomputer under consideration. If the new nickname is entry this implementation allocates one extra byte - but that didn't seem worth the extra code to fix it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-xml.c')
0 files changed, 0 insertions, 0 deletions