diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-05-31 14:14:37 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-05-31 14:14:37 +0200 |
| commit | 1bd57a20e6ee9e97f146daaf3416cb1940cd38a1 (patch) | |
| tree | ff9af17db8bb9ec06c0965c421252ca00c637bef /jpeg | |
| parent | b027d2ba57a8e0d6f0862e0a891ddd5dee4b02e2 (diff) | |
Windows: Fix compiler warning, simplify code
src/Fl_Native_File_Chooser_WIN32.cxx:190:10:
warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound
depends on the length of the source argument [-Wstringop-overflow=]
190 | strncpy(wp2, string, n);
| ~~~~~~~^~~~~~~~~~~~~~~~
Although there was no real problem with the code (the allocated buffer
was large enough), the code was questionable and there was redundant
code that could be simplified.
Diffstat (limited to 'jpeg')
0 files changed, 0 insertions, 0 deletions
