The Spanish "o" can have two sounds.
When it is at the end of a word it is like the
"o" in note e.g. "pato"
When it is before a consonant it
is shorter, like "pot" or "cot" e.g. "boda"
This difference is very subtle

Some other words which have this sound are:
pato - apio - loca

© Lingolex http://lingolex.com/spanish.htm