With the full source option. What would stop you from changing a few lines and then selling it off as your own?
I don't belive anyone is that stupid, but you should be so lucky! Willful commercial copyright infrignment is very much frowned upon by the courts. If this happens, you can sue and look forward to a nice payday with triple damages.
I have never actually heard of this happening to any library at all. Development libraries are generally such niche items that piracy of them is very uncommon. How many development libraries are available on the torrent sites? I would guess it's a number close to zero.
Out of interest where do you purchase your libs from? Is there some sort of marketplace out on the net?
I haven't actually used the site myself, but many of the libraries I use link back to http://www.componentsource.com/ Maybe it's an option for you to sell it there?
Usually I first research if there are any actively developed open source libraries with a suitable license that do what I need. If there is, that's probably what I'll end up using.
If there are no suitable open source libraries, I start considering commercial alternatives. Usually I turn to stuff I heard of before that has good reputation, if not, I google and see what I can find. The requirements are:
0) It should be useful for what I want.
1) Source should be included.
2) Distribution should be royalty free (we sell the end products in very high volumes, even a $1 royalty per copy would be way more than any fixed price a library vendor usually comes up with).
If those requirements are satisfied, I download the evaluation version. Sometimes I make my boss pay for the library even during evaluation, so that it can be properly evaluated with source code and all.
The cost of the library is generally not an issue (except for the royalty part). We want third-party vendors that can support their product for a long time to come. If the cost of the library was only $20, that would be an indicator very much against that, so I would probably look for something else based on that alone.
If you want to set a more realistic price, you could consider how many hours you spent making the library, and then think about how much a programmer is paid per hour. Then set your price based on how many copies you are likely to sell. Let's say you set the price at 10% of total development costs. Then you only need to sell 10 copies to "break even". Everything beyond that is just free money. It's still an OK deal for the buyer, as it would cost him roughly 10 times more to develop the functionality himself.
Of course, if there are other libraries that do the same thing as your library does, you should consider that when setting your price.