diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-07-07 08:47:31 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-07-07 08:47:31 (GMT) |
commit | d655e0866270a535855a94980a08d087e0b9f9ab (patch) | |
tree | 34541554b0225de734e40103da05d223e4edc062 /win | |
parent | cec5714641a4a94590010e3b659f993d294268f5 (diff) | |
download | tcl-d655e0866270a535855a94980a08d087e0b9f9ab.zip tcl-d655e0866270a535855a94980a08d087e0b9f9ab.tar.gz tcl-d655e0866270a535855a94980a08d087e0b9f9ab.tar.bz2 |
minor gcc compiler warning with -Wwrite-strings
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinPipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c index b9b881c..10b6ab2 100644 --- a/win/tclWinPipe.c +++ b/win/tclWinPipe.c @@ -475,7 +475,7 @@ TempFileName( TCHAR name[MAX_PATH]) /* Buffer in which name for temporary file * gets stored. */ { - TCHAR *prefix = TEXT("TCL"); + const TCHAR *prefix = TEXT("TCL"); if (GetTempPath(MAX_PATH, name) != 0) { if (GetTempFileName(name, prefix, 0, name) != 0) { return 1; @@ -3101,7 +3101,7 @@ TclpOpenTemporaryFile( namePtr += Tcl_DStringLength(&buf); Tcl_DStringFree(&buf); } else { - TCHAR *baseStr = TEXT("TCL"); + const TCHAR *baseStr = TEXT("TCL"); int length = 3 * sizeof(TCHAR); memcpy(namePtr, baseStr, length); |