Adding a special character at the end of the line

I used following to add * at the end of the line in file1.
It adds * at the end but has a space before it for some lines but some other lines it adds exactly after the last character.

How do I take out the space ?

sed 's/$/*/' file1 > file2

example:

contents of file1 :

/gtfix11/cs_eu_chicken_1_feedthru_pin
/gtfix11/cs_eu_chicken_10_feedthru_pin

contents of file 2 after the above sed command :

/gtfix11/cs_eu_chicken_1_feedthru_pin *
/gtfix11/cs_eu_chicken_10_feedthru_pin*

I do not want a space after 1_feedthru_pin . How do I do it ?

Thanks for help.

sed 's/[ ]*$/*/' file1 > file2

GREAT !!! It works.

Thanks for the help