Commit 639348ea authored by Claes Sjofors's avatar Claes Sjofors Committed by Claes Sjöfors

Rtt sort fix

parent 48e7ffa0
...@@ -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