This fixes the overflow size_t possible problem in the string functions (yes,
[awesomized/libmemcached] / src / memrm.c
index 77416c95601a33bce603fe704b3e77b59f1c7c36..acfbf53fd9bf62d60eb176bc1f9397773c141d74 100644 (file)
@@ -48,8 +48,11 @@ int main(int argc, char *argv[])
 
     if (rc != MEMCACHED_SUCCESS) 
     {
-      fprintf(stderr, "memrm: %s: memcache error %s\n", 
+      fprintf(stderr, "memrm: %s: memcache error %s", 
              argv[optind], memcached_strerror(memc, rc));
+      if (memc->my_errno)
+       fprintf(stderr, " system error %s", strerror(memc->my_errno));
+      fprintf(stderr, "\n");
     }
 
     optind++;