[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freetalk-dev] PATCH: stable segfaults when given a command without para
From: |
fuzzyTew |
Subject: |
[Freetalk-dev] PATCH: stable segfaults when given a command without parameters |
Date: |
Thu, 14 Jun 2007 01:24:47 -0400 |
Stable release segfaults for me when I type '/help', I think related
to my guile version 1.8.1. I don't fully understand this problem; I
guess newer versions of guile are more picky about things. But this
patch bandaids the program so it no longer crashes here.
diff -pruN freetalk/src/interpreter.cc freetalk-hack/src/interpreter.cc
--- freetalk/src/interpreter.cc 2007-06-14 01:17:30.000000000 -0400
+++ freetalk-hack/src/interpreter.cc 2007-06-14 01:19:15.000000000 -0400
@@ -63,6 +63,7 @@ interpreter (char *line)
return 1;
msg_str = strtok (NULL, "\0");
+ if (msg_str == NULL) msg_str = "";
/* Avati - dyn-commands.scm should not interpret
its args as messages. hence created new
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freetalk-dev] PATCH: stable segfaults when given a command without parameters,
fuzzyTew <=