Update put-getp.c

Sync'd with mdhim-tng