diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-21 08:52:17 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-21 08:52:17 -0400 |
commit | afbc7a60f17ed708f949fdb36e77d148f92ac0f1 (patch) | |
tree | 980bf64f648a21048856433b4edaf4f1b8410fc6 /lcdgps.c | |
parent | 9b96ab4b979cfda8f3a306ff887bd0adb8da3cc9 (diff) | |
download | gpsd-afbc7a60f17ed708f949fdb36e77d148f92ac0f1.tar.gz |
Magic-number elimination.
Diffstat (limited to 'lcdgps.c')
-rw-r--r-- | lcdgps.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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... */ |