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 | a1b86b4332a628715363cfc1ea98af369f04acba (patch) | |
tree | 34541554b0225de734e40103da05d223e4edc062 /win/tclWinPipe.c | |
parent | 76a55fd46d510370e634e2dcd93771cfc61c2b3e (diff) | |
download | tcl-a1b86b4332a628715363cfc1ea98af369f04acba.zip tcl-a1b86b4332a628715363cfc1ea98af369f04acba.tar.gz tcl-a1b86b4332a628715363cfc1ea98af369f04acba.tar.bz2 |
minor gcc compiler warning with -Wwrite-strings
Diffstat (limited to 'win/tclWinPipe.c')
-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); |