Use macros for maximum string length
authorDr. Johann Pfefferl <pfefferl@nghape.jpnet>
Tue, 11 May 2010 13:48:37 +0000 (15:48 +0200)
committerDr. Johann Pfefferl <pfefferl@nghape.jpnet>
Tue, 11 May 2010 13:48:37 +0000 (15:48 +0200)
gps-tracker.c

index 711264b..09fc483 100644 (file)
@@ -112,7 +112,7 @@ on_gps_device_changed (LocationGPSDevice *device, gpointer data)
   GtkLabel *info = (GtkLabel*)app_data->status_label;
   GString *msg;
   FILE *fp = app_data->outf_p;
-  gchar sbuf1[16], sbuf2[16];
+  gchar sbuf1[G_ASCII_DTOSTR_BUF_SIZE], sbuf2[G_ASCII_DTOSTR_BUF_SIZE];
        if (!device)
                return;