diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2013-05-23 12:56:59 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2013-05-23 12:56:59 -0700 |
commit | 09ccdda9a2040eaceb3978b955ae3bc5519a7e2d (patch) | |
tree | e1ad2e6efccad74452c7f287def7adf543e38db0 | |
parent | 3f71f6ae5b985cff6da6a8f083433f369d9ca25f (diff) |
319.23319.23
-rw-r--r-- | common-utils/common-utils.c | 6 | ||||
-rw-r--r-- | version.mk | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/common-utils/common-utils.c b/common-utils/common-utils.c index 7b18294..9b734f3 100644 --- a/common-utils/common-utils.c +++ b/common-utils/common-utils.c @@ -725,7 +725,7 @@ char *nv_trim_space(char *string) { char *ret, *end; for (ret = string; *ret && isspace(*ret); ret++); - for (end = ret + strlen(ret); end >= ret && isspace(*end); end--) { + for (end = ret + strlen(ret) - 1; end >= ret && isspace(*end); end--) { *end = '\0'; } @@ -745,13 +745,13 @@ static char *trim_char(char *string, char trim, int *count) { return NULL; } - len = strlen(string); - if (string[0] == trim) { string++; replaced++; } + len = strlen(string); + if (string[len - 1] == trim) { string[len - 1] = '\0'; replaced++; @@ -1 +1 @@ -NVIDIA_VERSION = 319.17 +NVIDIA_VERSION = 319.23 |