Update puts-gets.c

Sync'd with mdhim-tng