Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork10.9k
Commitd171d09
committed
MNT: alternative handling of trailing null character
Trying to avoid this compiler warning: ../numpy/_core/src/multiarray/stringdtype/casts.cpp:860:12: warning: 'char* strncat(char*, const char*, size_t)' specified bound 15 equals source length [-Wstringop-overflow=] 860 | strncat(buf, suffix, slen); | ~~~~~~~^~~~~~~~~~~~~~~~~~~1 parent60fccd5 commitd171d09
1 file changed
+10
-7
lines changedLines changed: 10 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
833 | 833 |
| |
834 | 834 |
| |
835 | 835 |
| |
836 |
| - | |
837 |
| - | |
| 836 | + | |
| 837 | + | |
838 | 838 |
| |
839 |
| - | |
| 839 | + | |
| 840 | + | |
840 | 841 |
| |
841 | 842 |
| |
842 | 843 |
| |
| |||
853 | 854 |
| |
854 | 855 |
| |
855 | 856 |
| |
856 |
| - | |
857 |
| - | |
| 857 | + | |
| 858 | + | |
858 | 859 |
| |
859 |
| - | |
860 |
| - | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
861 | 864 |
| |
862 | 865 |
| |
863 | 866 |
| |
|
0 commit comments
Comments
(0)