X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_platform.h;h=1b0317c0c30b0b43ff971fa97c01370eb89987de;hb=d280e1e9677a10b9b5c8083e040e956f0f4e18ca;hp=1f388988b2f7e101175d3a0a4d01670a4b4c5a4a;hpb=bd0220bf8c44fc5d368e6edf4d0769bbcd5eba5d;p=vg.git diff --git a/vg_platform.h b/vg_platform.h index 1f38898..1b0317c 100644 --- a/vg_platform.h +++ b/vg_platform.h @@ -40,12 +40,16 @@ struct vg_achievement #define VG_MUST_USE_RESULT __attribute__((warn_unused_result)) #include -#include #include #include #include #include #include +#include +#include +#include +#include +#include enum strncpy_behaviour{ k_strncpy_always_add_null = 0, @@ -92,6 +96,7 @@ VG_STATIC void vg_strnull( vg_str *str, char *buffer, u32 len ) VG_STATIC void vg_strcat( vg_str *str, const char *append ) { + if( !append ) return; for( u32 i=0; str->i < str->len; i++, str->i ++ ){ str->buffer[ str->i ] = append[i];