From ff3288dab60ed2f8902b6ea0b3c0ada0507431b2 Mon Sep 17 00:00:00 2001 From: ecorm <9456478-ecorm@users.noreply.gitlab.com> Date: Thu, 1 Feb 2024 00:07:24 -0400 Subject: [PATCH] Add quotes around paths when KIBIS generates waveforms via ngspice Fixes #16655 --- eeschema/sim/kibis/kibis.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/sim/kibis/kibis.cpp b/eeschema/sim/kibis/kibis.cpp index 1c447c99ac..34473289c1 100644 --- a/eeschema/sim/kibis/kibis.cpp +++ b/eeschema/sim/kibis/kibis.cpp @@ -918,7 +918,7 @@ void KIBIS_PIN::getKuKdOneWaveform( KIBIS_MODEL& aMod //simul += "plot v(KU) v(KD)\n"; std::string outputFileName = m_topLevel->m_cacheDir + "temp_output.spice"; - simul += "write " + outputFileName + " v(KU) v(KD)\n"; + simul += "write '" + outputFileName + "' v(KU) v(KD)\n"; simul += "quit\n"; simul += ".endc \n"; simul += ".end \n"; @@ -1122,7 +1122,7 @@ void KIBIS_PIN::getKuKdTwoWaveforms( KIBIS_MODEL& aMo simul += "plot v(KU) v(KD)\n"; //simul += "plot v(x1.DIE0) \n"; std::string outputFileName = m_topLevel->m_cacheDir + "temp_output.spice"; - simul += "write " + outputFileName + " v(KU) v(KD)\n"; + simul += "write '" + outputFileName + "' v(KU) v(KD)\n"; simul += "quit\n"; simul += ".endc \n"; simul += ".end \n";