Welcome to the Builder Academy

Question fix space on alias

More
04 Mar 2014 14:12 - 04 Mar 2014 14:15 #4735 by drefs
fix space on alias was created by drefs
ex:
alias gos gossip [$*]
gos test
you gossips, '[ test]'

with the fix:
you gossips, '[test]'
Code:
in file interpreter.c static void perform_complex_alias around line 701 if ((num = *temp - '1') < num_of_tokens && num >= 0) { strcpy(write_point, tokens[num]); /* strcpy: OK */ write_point += strlen(tokens[num]); } else if (*temp == ALIAS_GLOB_CHAR) { + skip_spaces(&orig); strcpy(write_point, orig); /* strcpy: OK */ write_point += strlen(orig); } else if ((*(write_point++) = *temp) == '$') /* redouble $ for act safety */

[]'s.
Drefs
Last edit: 04 Mar 2014 14:15 by drefs.
The following user(s) said Thank You: Olan

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

More
05 Mar 2014 01:39 #4736 by Rumble
Replied by Rumble on topic fix space on alias
Added, thanks.

Rumble
The Builder Academy
tbamud.com 9091
rumble@tbamud.com

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

Time to create page: 0.210 seconds