pointer issue

This commit is contained in:
2025-07-15 12:42:10 -06:00
parent af6b68fa9b
commit af5258fd97
+2 -2
View File
@@ -72,12 +72,12 @@ void *receiver(void *arg) {
}
void *output(void *arg) {
char msg[30];
char *msg;
while (1) {
pthread_mutex_lock(&receivemut);
if (ListCount(receivelist) != 0) {
ListFirst(receivelist);
strcpy(msg, ListCurr(receivelist));
msg = ListCurr(receivelist);
ListRemove(receivelist);
printf("%s\n", (char*)msg);
}