From d9fe0b6cb36334f76faef0900fb0a9f89a129e68 Mon Sep 17 00:00:00 2001 From: nick Date: Tue, 25 Mar 2008 19:28:05 +0000 Subject: [PATCH] A few little changes git-svn-id: http://svn.nickg.me.uk/work/xcowsay@335 a97b1542-0b21-0410-a459-e47997c36f34 --- src/display_cow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/display_cow.c b/src/display_cow.c index 2c87562..9548b9b 100644 --- a/src/display_cow.c +++ b/src/display_cow.c @@ -75,6 +75,7 @@ static cowstate_t next_state(cowstate_t state) } } +// TODO: Change this to use the actual max path length... #define MAX_COW_PATH 256 static GdkPixbuf *load_cow() { @@ -297,6 +298,7 @@ void cowsay_init(int *argc, char ***argv) static char *copy_string(const char *s) { char *copy = malloc(strlen(s)+1); + g_assert(copy); strcpy(copy, s); return copy; } -- 2.39.2