smb.c: Fixed compilation warning

smb.c:586: warning: conversion to 'short unsigned int' from 'int' may
           alter its value