Skip to content

Commit d2298d6

Browse files
committed
fixed label issues
1 parent 28bafea commit d2298d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/as4.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ unsigned short int findlabel(label **unknownlabels, label **labels, const char *
769769
exit(9);
770770
}
771771
/* Copy the name of the label into the temporary string pointer for comparison. */
772-
memcpy(tempstr, labelstr, (strlen(labelstr) - 1));
772+
memcpy(tempstr, labelstr, strlen(labelstr));
773773
/* Check that the pointer to the pointer to the collection of labels is valid .*/
774774
if(labels != NULL)
775775
{
@@ -1028,4 +1028,4 @@ void addstring(char *outbuf, char *string, char zeroterm, unsigned long long *bi
10281028
}
10291029
}
10301030

1031-
/* Finito! */
1031+
/* Finito! */

0 commit comments

Comments
 (0)