diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-21 18:43:12 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-21 18:43:12 -0400 |
commit | 82c5bd422dca07ed949707d48268389b1bf72184 (patch) | |
tree | 7da254d03bf433d8da2e27ef03d938df7b0aa94d /libgps_core.c | |
parent | 735d0c815316dd9524fefca9a709ac395200eb95 (diff) | |
download | gpsd-82c5bd422dca07ed949707d48268389b1bf72184.tar.gz |
Moinor correction to previous commit; buffer must be static.
Diffstat (limited to 'libgps_core.c')
-rw-r--r-- | libgps_core.c | 2 |
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 |