summaryrefslogtreecommitdiff
path: root/lcdgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-21 08:52:17 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-21 08:52:17 -0400
commitafbc7a60f17ed708f949fdb36e77d148f92ac0f1 (patch)
tree980bf64f648a21048856433b4edaf4f1b8410fc6 /lcdgps.c
parent9b96ab4b979cfda8f3a306ff887bd0adb8da3cc9 (diff)
downloadgpsd-afbc7a60f17ed708f949fdb36e77d148f92ac0f1.tar.gz
Magic-number elimination.
Diffstat (limited to 'lcdgps.c')
-rw-r--r--lcdgps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcdgps.c b/lcdgps.c
index 4a768055..38000392 100644
--- a/lcdgps.c
+++ b/lcdgps.c
@@ -149,7 +149,7 @@ int send_lcd(char *buf) {
/* TODO: check return status */
/* read the data */
- res=sockreadline(sd,rcvbuf,255);
+ res=sockreadline(sd,rcvbuf,sizeof(rcvbuf)-1);
/* null-terminate the string before printing */
/* rcvbuf[res-1]=0; FIX-ME: not using this at the moment... */