summaryrefslogtreecommitdiff
path: root/gpsdecode.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-07 12:38:54 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-07 12:38:54 +0000
commitbd6680b29c898ffef331532dc97f9dd0986f3516 (patch)
tree336513bf7d4d0be49a541081bb9615d2008179df /gpsdecode.c
parent61dc777d5eaba108dd07ca6b815d50df6b34fe9e (diff)
downloadgpsd-bd6680b29c898ffef331532dc97f9dd0986f3516.tar.gz
Uniform treatment of line terminations.
Diffstat (limited to 'gpsdecode.c')
-rw-r--r--gpsdecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsdecode.c b/gpsdecode.c
index 1d1332b5..97881b53 100644
--- a/gpsdecode.c
+++ b/gpsdecode.c
@@ -319,6 +319,7 @@ static void aivdm_csv_dump(struct ais_t *ais, char *buf, size_t buflen)
buflen-strlen(buf), "unknown AIVDM message content.");
break;
}
+ (void)strlcat(buf, "\r\n", buflen);
}
/*@ -compdestroy -compdef -usedef @*/
@@ -357,7 +358,6 @@ static void decode(FILE *fpin, FILE *fpout)
else
aivdm_json_dump(&ais, scaled, buf, sizeof(buf));
(void)fputs(buf, fpout);
- (void)fputs("\n", fpout);
}
/*@ +uniondef */