Created attachment 672222 [details] proposed patch Description of problem: from log: In file included from /usr/include/string.h:656:0, from /usr/src/RPM/BUILD/GMT4.5.8/src/gmt.h:77, from mgd77.h:22, from mgd77.c:20: In function 'strncpy', inlined from 'MGD77_Decode_Header_m77t' at mgd77.c:857:14: /usr/include/bits/string3.h:120:3: error: call to __builtin___strncpy_chk will always overflow destination buffer In function 'strncpy', inlined from 'MGD77_Decode_Header_m77t' at mgd77.c:868:14: /usr/include/bits/string3.h:120:3: error: call to __builtin___strncpy_chk will always overflow destination buffer In function 'strncpy', inlined from 'MGD77_Decode_Header_m77t' at mgd77.c:872:14: /usr/include/bits/string3.h:120:3: error: call to __builtin___strncpy_chk will always overflow destination buffer mgd77.c: In function 'MGD77_Read_Data_Record_m77t': Proposed patch (attached) fixes this warning and makes program more stable.
This was fixed upstream in 4.5.9