diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-23 21:19:32 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-23 21:19:32 +0100 |
commit | 097442ed9e3340344d7fbc021baaf0b11e7ea4fb (patch) | |
tree | e86018252bff6a8a9ac5ae2942845ccbb6ba02db /main.c | |
parent | Vill inte. (diff) | |
download | calp-c++2.tar.gz calp-c++2.tar.xz |
Everything broken, again.c++2
Diffstat (limited to '')
-rw-r--r-- | main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,3 +1,5 @@ +#include <string> + #include <errno.h> #include <stdio.h> #include <string.h> @@ -61,8 +63,8 @@ int main (int argc, char** argv) { if (strcmp(ev->type, "VEVENT") != 0) continue; content_line* cl = get_property(ev, "SUMMARY"); - strbuf* s = cl->data.cur->value->key; - char* m = s->mem; + std::string* s = cl->data.cur->value->key; + const char* m = s->c_str(); printf("%3lu : %3lu | %s | %s\n", i + 1, j + 1, filename, m); |