summaryrefslogtreecommitdiff
path: root/libgps_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-21 18:43:12 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-21 18:43:12 -0400
commit82c5bd422dca07ed949707d48268389b1bf72184 (patch)
tree7da254d03bf433d8da2e27ef03d938df7b0aa94d /libgps_core.c
parent735d0c815316dd9524fefca9a709ac395200eb95 (diff)
downloadgpsd-82c5bd422dca07ed949707d48268389b1bf72184.tar.gz
Moinor correction to previous commit; buffer must be static.
Diffstat (limited to 'libgps_core.c')
-rw-r--r--libgps_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgps_core.c b/libgps_core.c
index 6618b519..d0a65f56 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -718,7 +718,7 @@ extern const char /*@observer@*/ *gps_errstr(const int err)
#ifndef USE_QT
return netlib_errstr(err);
#else
- char buf[32];
+ static char buf[32];
(void)snprintf(buf, sizeof(buf), "Qt error %d", err);
return buf;
#endif