projects
/
sockspy
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c96c1e7
)
Fixed quoting bugs when saving to file.
author
Lars Hellstrom
<lars_h@users.sourceforge.net>
Fri, 27 Nov 2009 01:10:30 +0000
(
01:10
+0000)
committer
Pat Thoyts
<patthoyts@users.sourceforge.net>
Fri, 27 Nov 2009 01:11:36 +0000
(
01:11
+0000)
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
bin/sockspy.tcl
patch
|
blob
|
history
diff --git
a/bin/sockspy.tcl
b/bin/sockspy.tcl
index 2abc6e2ce01a52f61bad9c23bcab1b001e61829d..1833b15cecb2922eda691e3cad4d572e112a01e1 100644
(file)
--- a/
bin/sockspy.tcl
+++ b/
bin/sockspy.tcl
@@
-1165,7
+1165,7
@@
proc stateRestore {} {
# complain only if it exists and we fail to read it successsfully
if {[file exists $stateFile]} {
- uplevel #0
source $stateFile
+ uplevel #0
[list source $stateFile]
}
set state(stateFile) $stateFile
@@
-1227,7
+1227,7
@@
proc stateSaveReal {} {
puts $sf ""
foreach v $::saveList {
- puts $sf
"set $v \"[string map {[ \\[ \\ \\\\} [set $v]]\""
+ puts $sf
[list set $v [set $v]]
}
close $sf
}