diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2007-12-11 00:44:16 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2007-12-11 00:44:16 +0000 |
commit | cf59093f149207d81c437246d5e599f6a53c1346 (patch) | |
tree | 25a19e8fe447184f5786b0cdb8721eaa85d02925 /gpsd.c | |
parent | 78f41d026f3eadc298c1d20e4269fc94f6d6feea (diff) | |
download | gpsd-cf59093f149207d81c437246d5e599f6a53c1346.tar.gz |
Fix to time conversion by Petr Slansky; passes all stable regressions.
Also, change a formal from int to size_t appropriately.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -750,7 +750,7 @@ static int handle_gpsd_request(struct subscriber_t* sub, char *buf, int buflen) (void)strlcpy(phrase, ",D=", BUFSIZ); if (assign_channel(sub) && isnan(sub->fixbuffer.time)==0) (void)unix_to_iso8601(sub->fixbuffer.time, - phrase+3, (int)(sizeof(phrase)-3)); + phrase+3, sizeof(phrase)-3); else (void)strlcat(phrase, "?", BUFSIZ); break; |