diff options
| author | Neil <nyamatongwe@gmail.com> | 2013-12-22 18:00:45 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2013-12-22 18:00:45 +1100 | 
| commit | ca1a5ea845c283a9c84fd2ae9f6d152cca354183 (patch) | |
| tree | d851b7c06cc7763849d504b58797199c9032b441 /gtk/Converter.h | |
| parent | 0b56a6704d1c64644d5bfef318806f8490d649ec (diff) | |
| download | scintilla-mirror-ca1a5ea845c283a9c84fd2ae9f6d152cca354183.tar.gz | |
Avoid unsafe strcpy, strncpy, and strcat replacing with safer functions which
guaranty termination where possible.
Diffstat (limited to 'gtk/Converter.h')
| -rw-r--r-- | gtk/Converter.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/gtk/Converter.h b/gtk/Converter.h index fe9e23199..be530341f 100644 --- a/gtk/Converter.h +++ b/gtk/Converter.h @@ -51,8 +51,8 @@ public:  			// Try allowing approximate transliterations  			if (transliterations) {  				char fullDest[200]; -				strcpy(fullDest, charSetDestination); -				strcat(fullDest, "//TRANSLIT"); +				g_strlcpy(fullDest, charSetDestination, sizeof(fullDest)); +				g_strlcat(fullDest, "//TRANSLIT", sizeof(fullDest));  				OpenHandle(fullDest, charSetSource);  			}  			if (!Succeeded()) { | 
