Hello, The attached patch makes a few small type changes in the files getenv.c and setenv.c. The assumption is that unsigned types (specifically size_t) better represent object sizes than signed types, and that ptrdiff_t is best for pointer arithmetic.
In getenv.c, the __findenv function is changed to use size_t for its length parameter, and ptrdiff_t for its offset parameter. The getenv function is modified accordingly. In setenv.c, the setenv function is also modified to match the changes to __findenv, as well as to use size_t for all variables representing object sizes. (Just to be clear, I'm not reporting a bug, just making a suggestion.) Mansour [demime 1.01d removed an attachment of type application/octet-stream which had a name of getenv.patch] [demime 1.01d removed an attachment of type application/octet-stream which had a name of setenv.patch]
