remove pointless resize

This commit is contained in:
sam 2024-07-22 22:04:22 +12:00
parent 6142aca17a
commit 2061729f4b

View file

@ -146,7 +146,6 @@ char* sl_c_str(sl_string str);
#ifdef SL_IMPLEMENTATION #ifdef SL_IMPLEMENTATION
char* sl_c_str(sl_string str) { char* sl_c_str(sl_string str) {
sl_vec_push(str, '\0'); sl_vec_push(str, '\0');
str.size--;
return str.data; return str.data;
} }
#endif #endif