summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2007-12-11 00:44:16 +0000
committerEric S. Raymond <esr@thyrsus.com>2007-12-11 00:44:16 +0000
commitcf59093f149207d81c437246d5e599f6a53c1346 (patch)
tree25a19e8fe447184f5786b0cdb8721eaa85d02925 /gpsd.c
parent78f41d026f3eadc298c1d20e4269fc94f6d6feea (diff)
downloadgpsd-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 8c8b299c..2e72c078 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -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;