summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Hooks/abrt-pyhook-helper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Hooks/abrt-pyhook-helper.cpp b/src/Hooks/abrt-pyhook-helper.cpp
index 24f08d3..348fbc7 100644
--- a/src/Hooks/abrt-pyhook-helper.cpp
+++ b/src/Hooks/abrt-pyhook-helper.cpp
@@ -108,8 +108,8 @@ int main(int argc, char** argv)
if (uuid)
dd.SaveText("uuid", uuid);
- char uid[16];
- snprintf(uid, 16, "%d", (int)getuid());
+ char uid[sizeof(int) * 3 + 2];
+ sprintf(uid, "%d", (int)getuid());
dd.SaveText("uid", uid);
dd.SaveText("backtrace", bt);