Commit 688a4a13 authored by Pontus Freyhult's avatar Pontus Freyhult
Browse files

Explicitly cast parameter to isidigt.

Rev: src/sftp/ChangeLog:1.37
Rev: src/sftp/commands.c:1.12
parent 9f9a9eed
2002-06-27 Pontus Skld <>
* commands.c (com_umask): Do an explicit cast of the parameter to
* str_utils.c (lsftp_s_strtok): Don't use strndup.
(lsftp_s_strtok): Removed unused variable.
......@@ -317,7 +317,9 @@ com_umask(const char *arg, const char *command UNUSED)
given++; /* User gave a new mask */
if( isdigit( tmp[0] ) )
/* FIXME: Should probably explicitly state signed/unsigned in all declarations. */
if( isdigit( (unsigned char) tmp[0] ) )
newmask = atol( tmp );
umask( newmask );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment