aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorame <[email protected]>2025-12-01 04:27:44 -0600
committerame <[email protected]>2025-12-01 04:27:44 -0600
commit228ba21e4fe702393b5e131ea14bbbfceff3f0b1 (patch)
treecb5c43b1a5f3e32001115da83e4239aaefa98e39
parenta187892a6c544e5b19e8429fd447773e4135b4eb (diff)
more stderr oh also fprintf not sprintf silly
-rw-r--r--src/lua.c4
-rw-r--r--src/net.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lua.c b/src/lua.c
index 8729229..587b291 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -272,11 +272,11 @@ void luaI_deepcopy(lua_State* src, lua_State* dest, enum deep_copy_flags flags){
lua_pushlightuserdata(dest, lua_touserdata(src, -1));
break;
case LUA_TTHREAD:
- sprintf(stderr, "unable to copy LUA_TTHREAD, pushing nil\n");
+ fprintf(stderr, "unable to copy LUA_TTHREAD, pushing nil\n");
lua_pushnil(dest);
break;
default:
- sprintf(stderr, "unknown type %i vs (old)%i\n",lua_type(src, -1), type);
+ fprintf(stderr, "unknown type %i vs (old)%i\n",lua_type(src, -1), type);
//abort();
lua_pushnil(dest);
break;
diff --git a/src/net.c b/src/net.c
index c9e424e..abab731 100644
--- a/src/net.c
+++ b/src/net.c
@@ -878,7 +878,7 @@ void* handle_client(void *_arg){
//call the function
if(lua_pcall(L, 2, 0, 0) != 0){
- printf("(net thread) %s\n", lua_tostring(L, -1));
+ fprintf(stderr, "(net thread) %s\n", lua_tostring(L, -1));
//send an error message if send has not been called
if(client_fd >= 0) net_error(client_fd, 500);