diff --git a/scripts/ai/empire.lua b/scripts/ai/empire.lua index 5778c97..e58911b 100644 --- a/scripts/ai/empire.lua +++ b/scripts/ai/empire.lua @@ -13,8 +13,7 @@ function create() if rnd.int() > 0.7 then mem.bribe = math.sqrt(ai.shipmass())*(500. * rnd.int() + 1750.) - mem.bribe_prompt = string.format("\"For some %d credits I could forget \ - about seeing you.\"", mem.bribe) + mem.bribe_prompt = string.format("\"For some %d credits I could forget about seeing you.\"", mem.bribe) mem.bribe_paid = "\"Now, scram, before I change my mind.\"" else if rnd.int() > 0.5 then diff --git a/scripts/ai/pirate.lua b/scripts/ai/pirate.lua index bf19721..e5e553f 100644 --- a/scripts/ai/pirate.lua +++ b/scripts/ai/pirate.lua @@ -12,7 +12,7 @@ function create() -- Deal with bribeability. if rnd.int() < 0.05 then - mem.bribe_no = = "\"You won't be able to slide out of this one!\"" + mem.bribe_no = "\"You won't be able to slide out of this one!\"" else mem.bribe = math.sqrt(ai.shipmass()) * (300. * rnd.int() + 850.) if rnd.int() > 0.5 then diff --git a/src/lephisto.c b/src/lephisto.c index d8fac06..a3a90fa 100644 --- a/src/lephisto.c +++ b/src/lephisto.c @@ -305,7 +305,7 @@ void loadscreen_load(void) { } /* Load the texture. */ - snprintf(file_path, PATH_MAX, loadscreens[RNG(0, nload-1)]); + strncpy(file_path, loadscreens[RNG(0, nload-1)], PATH_MAX); loading = gl_newImage(file_path); /* Clean up. */