summaryrefslogtreecommitdiff
path: root/gps2udp.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-10-09 01:52:11 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-12-09 08:35:07 -0500
commit93a0316136a99f47cd13c121978ac4362f31c95b (patch)
tree2502e3514398ad6454e13be5fdfff2f92d2860ef /gps2udp.c
parentd6bff39ac6fe6e7dd58eb7e6af3abfe5501ff0c4 (diff)
downloadgpsd-93a0316136a99f47cd13c121978ac4362f31c95b.tar.gz
Fix a minor bug reported by the author.
Diffstat (limited to 'gps2udp.c')
-rw-r--r--gps2udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gps2udp.c b/gps2udp.c
index 1af7f71f..d753923b 100644
--- a/gps2udp.c
+++ b/gps2udp.c
@@ -102,8 +102,8 @@ static int send_udp (char *nmeastring, size_t ind)
ind = ind-1;
}
/* Add termination to NMEA feed for AISHUB */
- buffer[ind] = '\n'; ind++;
buffer[ind] = '\r'; ind++;
+ buffer[ind] = '\n'; ind++;
buffer[ind] = '\0';
if ((flags & WATCH_JSON)==0 && buffer[0] == '{') {