Commit 8f0e9c34 authored by Claes Sjofors's avatar Claes Sjofors

Rtt sort fix

parent 2fce9529
...@@ -6112,7 +6112,8 @@ int rtt_menu_classort(rtt_t_menu* menulist, int redo) ...@@ -6112,7 +6112,8 @@ int rtt_menu_classort(rtt_t_menu* menulist, int redo)
strcpy(menu_ptr->text, "000"); strcpy(menu_ptr->text, "000");
strcat(menu_ptr->text, dummytxt); strcat(menu_ptr->text, dummytxt);
} else { } else {
strcpy(menu_ptr->text, &menu_ptr->text[3]); strcpy(dummytxt, &menu_ptr->text[3]);
strcpy(menu_ptr->text, dummytxt);
} }
} else if (streq(classname, "pwrb:Class-PlcPgm")) { } else if (streq(classname, "pwrb:Class-PlcPgm")) {
if (!redo) { if (!redo) {
...@@ -6120,7 +6121,8 @@ int rtt_menu_classort(rtt_t_menu* menulist, int redo) ...@@ -6120,7 +6121,8 @@ int rtt_menu_classort(rtt_t_menu* menulist, int redo)
strcpy(menu_ptr->text, "001"); strcpy(menu_ptr->text, "001");
strcat(menu_ptr->text, dummytxt); strcat(menu_ptr->text, dummytxt);
} else { } else {
strcpy(menu_ptr->text, &(menu_ptr->text[3])); strcpy(dummytxt, &menu_ptr->text[3]);
strcpy(menu_ptr->text, dummytxt);
} }
} }
menu_ptr++; menu_ptr++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment