diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-11 22:48:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-11 22:48:04 +0000 |
commit | e1ff0291a39991e4ce025ece424ca8fae82fd88b (patch) | |
tree | e6ee7cb6be3c393c67e43dbcab30199ddb26a34a /src/util/os_installation.c | |
parent | 9f2d6b1be912f09e47c30b2ac7b79a9c5e7bdecc (diff) | |
download | gnunet-e1ff0291a39991e4ce025ece424ca8fae82fd88b.tar.gz gnunet-e1ff0291a39991e4ce025ece424ca8fae82fd88b.zip |
-LRN: use plibc SSCANF instead of sscanf
Diffstat (limited to 'src/util/os_installation.c')
-rw-r--r-- | src/util/os_installation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/os_installation.c b/src/util/os_installation.c index b82813d74..e790ce10e 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c | |||
@@ -62,7 +62,7 @@ get_path_from_proc_maps () | |||
62 | while (NULL != fgets (line, sizeof (line), f)) | 62 | while (NULL != fgets (line, sizeof (line), f)) |
63 | { | 63 | { |
64 | if ((1 == | 64 | if ((1 == |
65 | sscanf (line, "%*x-%*x %*c%*c%*c%*c %*x %*2u:%*2u %*u%*[ ]%s", dir)) && | 65 | SSCANF (line, "%*x-%*x %*c%*c%*c%*c %*x %*2u:%*2u %*u%*[ ]%s", dir)) && |
66 | (NULL != (lgu = strstr (dir, "libgnunetutil")))) | 66 | (NULL != (lgu = strstr (dir, "libgnunetutil")))) |
67 | { | 67 | { |
68 | lgu[0] = '\0'; | 68 | lgu[0] = '\0'; |