summaryrefslogtreecommitdiff
path: root/gpsdclient.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-29 06:41:09 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-29 06:41:09 -0400
commit3ef1d9ecbef54ba5e4e6a8167a8dd5c5723aa94f (patch)
treeb7dcab4eb669ca6fe3fc18bd672bc53e5a3d2c57 /gpsdclient.c
parentc48d0caf13ce030166fedad354e4732584584f50 (diff)
downloadgpsd-3ef1d9ecbef54ba5e4e6a8167a8dd5c5723aa94f.tar.gz
Magic-number and strncpy elimination. All regression tests pass
Diffstat (limited to 'gpsdclient.c')
-rw-r--r--gpsdclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsdclient.c b/gpsdclient.c
index 22f2b0af..cd52835f 100644
--- a/gpsdclient.c
+++ b/gpsdclient.c
@@ -32,7 +32,7 @@
double fdsec, fsec, fdeg, fmin;
if (f < 0 || f > 360) {
- (void)strlcpy(str, "nan", 40);
+ (void)strlcpy(str, "nan", sizeof(str));
return str;
}