fix compiler warning about possible buffer size issue
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 8 Oct 2019 02:49:35 +0000 (20:49 -0600)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 8 Oct 2019 02:50:08 +0000 (20:50 -0600)
gtk2_ardour/luawindow.cc

index ef545a141ca4580f7418dc01c14fb0df36a40646..ee1475cfaf011d45f60b2fd5d94fdfd36818f6f8 100644 (file)
@@ -495,7 +495,7 @@ LuaWindow::save_script ()
        // 5) construct filename -- TODO ask user for name, ask to replace file.
        do {
                char tme[80];
-               char buf[80];
+               char buf[100];
                time_t t = time(0);
                struct tm * timeinfo = localtime (&t);
                strftime (tme, sizeof(tme), "%s", timeinfo);