diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-12-30 01:11:30 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-12-30 01:11:30 +0000 |
commit | 76dfef0cec9170000357d2f354e412daf48941fc (patch) | |
tree | 56647120c0ee20ab3494475c86722034cd194b02 /sci-electronics/ngspice/files/ngspice-27-fix_parsing_tcl_commands.patch | |
parent | ccf84bcd604130256d1377cd58f0a634ae6ee20f (diff) |
gentoo resync : 30.12.2017
Diffstat (limited to 'sci-electronics/ngspice/files/ngspice-27-fix_parsing_tcl_commands.patch')
-rw-r--r-- | sci-electronics/ngspice/files/ngspice-27-fix_parsing_tcl_commands.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sci-electronics/ngspice/files/ngspice-27-fix_parsing_tcl_commands.patch b/sci-electronics/ngspice/files/ngspice-27-fix_parsing_tcl_commands.patch new file mode 100644 index 000000000000..bad336590dfa --- /dev/null +++ b/sci-electronics/ngspice/files/ngspice-27-fix_parsing_tcl_commands.patch @@ -0,0 +1,16 @@ +--- a/src/tclspice.c ++++ b/src/tclspice.c +@@ -828,10 +828,9 @@ + int i; + NG_IGNORE(clientData); + save_interp(); +- /* Looks backwards through the first command and strips the :: part */ +- for (i = strlen(argv[0])-1; i > 0; i--) +- if (argv[0][i] == *":") +- argv[0] += i + 1; ++ char *prefix = strstr(argv[0], "spice::"); ++ if (prefix) ++ argv[0] = prefix + 7; + return _run(argc, (char **)argv); + } + |