--- stack/stack.c 2002/02/07 23:53:14 1.51 +++ stack/stack.c 2002/02/07 23:56:54 1.53 @@ -1,14 +1,12 @@ -/* printf */ +/* printf, sscanf, fgets, fprintf */ #include -/* EXIT_SUCCESS */ +/* exit, EXIT_SUCCESS, malloc, free */ #include /* NULL */ #include /* dlopen, dlsym, dlerror */ #include -/* assert */ -#include -/* strcat */ +/* strcmp, strcpy, strlen, strcat, strdup */ #include #define HASHTBLSIZE 65536 @@ -207,8 +205,8 @@ strcpy(new_string, "sx_"); /* Stack eXternal */ current=new_string+3; while(old_string[0] != '\0'){ - current[0]=validchars[old_string[0]/16]; - current[1]=validchars[old_string[0]%16]; + current[0]=validchars[(unsigned char)(old_string[0])/16]; + current[1]=validchars[(unsigned char)(old_string[0])%16]; current+=2; old_string++; }