From 82c5bd422dca07ed949707d48268389b1bf72184 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 21 Mar 2011 18:43:12 -0400 Subject: Moinor correction to previous commit; buffer must be static. --- libgps_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgps_core.c') 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 -- cgit v1.2.1