Welcome to the Builder Academy

Question Crashing with /t in Redit Room Description

More
19 Jun 2012 00:04 #105 by Liko

vatiken wrote: 1)You are trying to toggle a string that doesn't exist.

Code:
"str=0xbffff1e8 "")
2)Never the less, it's shouldn't crash.

improved_edit.c
Code:
case PARSE_TOGGLE: + if (!*d->str) { + write_to_output(d, "No string.\r\n"); + break; + } if (strchr(*d->str, '@')) { parse_at(*d->str); write_to_output(d, "Toggling (at) into (tab) Characters...\r\n"); } else { parse_tab(*d->str); write_to_output(d, "Toggling (tab) into (at) Characters...\r\n"); } break;

=======================

Dang, beat me to it.


Both ways work. :)

Randian(0.0.0)
Owner/Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.170 seconds