Mercurial > vim
view src/proto/os_mac_conv.pro @ 19661:31d303c0c464 v8.2.0387
patch 8.2.0387: error for possible NULL argument to qsort()
Commit: https://github.com/vim/vim/commit/bb65a5690c24ccfce37e210316bf1d0964c91359
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 15 18:15:03 2020 +0100
patch 8.2.0387: error for possible NULL argument to qsort()
Problem: Error for possible NULL argument to qsort().
Solution: Don't call qsort() when there is nothing to sort. (Dominique
Pelle, closes #5780)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 15 Mar 2020 18:30:04 +0100 |
parents | 7fda54504fee |
children |
line wrap: on
line source
/* os_mac_conv.c */ char_u *mac_string_convert(char_u *ptr, int len, int *lenp, int fail_on_error, int from_enc, int to_enc, int *unconvlenp); int macroman2enc(char_u *ptr, long *sizep, long real_size); int enc2macroman(char_u *from, size_t fromlen, char_u *to, int *tolenp, int maxtolen, char_u *rest, int *restlenp); void mac_conv_init(void); void mac_conv_cleanup(void); char_u *mac_utf16_to_enc(unsigned short *from, size_t fromLen, size_t *actualLen); unsigned short *mac_enc_to_utf16(char_u *from, size_t fromLen, size_t *actualLen); void *mac_enc_to_cfstring(char_u *from, size_t fromLen); char_u *mac_precompose_path(char_u *decompPath, size_t decompLen, size_t *precompLen); void mac_lang_init(void); /* vim: set ft=c : */